human
Give me a Python function to flip a matrix in Python.
assistant
Here is a Python function to flip a matrix

import numpy as np

def flip_matrix(matrix):
    """Flip a matrix."""
    return np.fliplr(matrix)

# Enter the matrix
matrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])

# Calling the function
flipped_matrix = flip_matrix(matrix)

# Printing the flipped matrix
print(flipped_matrix)

#Example Output

# [[3 2 1]
#  [6 5 4]
#  [9 8 7]]

#Remember to inspect code for bugs.