human
Can you show me a Python function to amax for 3d numpy arrays.
assistant
Here is a Python function to amax for 3d numpy arrays

import numpy as np

def _amax(array):
    """Returns the maximum value of a 3d numpy array."""
    return np.amax(array)

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

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

#Example Output
# 12

#Remember to inspect code for bugs.