human
Give me a Python program to implement matrix inverse.
assistant
Here is a Python program to implement matrix inverse

import numpy as np

def matrix_inverse(matrix):
    """
    Returns the inverse of a matrix.
    :param matrix: matrix to be inverted
    :return: inverse of matrix
    """
    return np.linalg.inv(matrix)

# Enter the matrix
matrix = np.array([[1, 2], [3, 4]])

# Calling the function
print((matrix_inverse(matrix)))

#Example Output
# [[-2.   1. ]
#  [ 1.5 -0.5]]

#Remember to inspect code for bugs.