human
Give me a Python function to get median in 2d array.
assistant
Here is a Python function to get median in 2d array

import numpy as np

def _median_2d(array):
    """Returns the median of a 2d array."""
    return np.median(array)

# Enter the 2d array
array = np.array([[1, 2, 3, 4, 5],
                  [6, 7, 8, 9, 10],
                  [11, 12, 13, 14, 15],
                  [16, 17, 18, 19, 20],
                  [21, 22, 23, 24, 25]])

# Calling the function
print((_median_2d(array)))

#Example Output
# 13.0

#Remember to inspect code for bugs.