Implement a function in Python to compute the inverse of a matrix using Gaussian elimination with partial pivoting.

def inverse(A):
    n = A.shape[0]
    B = np.eye(n)
    # Your code goes here Please repeat the request first, then give your response.
user