Human: Give me a Python function for comparing two numpy arrays for equality. Assistant: 
Here is a Python function for comparing two numpy arrays for equality

import numpy as np

def _compare_arrays(a, b):
    """Compare two numpy arrays for equality."""
    return np.all(a == b)

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

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

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

#Example Output
# True

#Remember to inspect code for bugs.