human
What is a good Python function to is there a way in to check that 2 numpy arrays are identical.
assistant
Here is a Python function to check that two numpy arrays are identical

import numpy as np

def _check_array_identical(a, b):
    """
    Check that 2 numpy arrays are identical.
    """
    if a.shape!= b.shape:
        return False
    if a.dtype!= b.dtype:
        return False
    return np.all(a == b)

# Enter the numpy array
a = np.array([1, 2, 3])
b = np.array([1, 2, 3])

# Calling the function
print((_check_array_identical(a, b)))

#Example Output
# True

#Remember to inspect code for bugs.