human
Can you show me a Python function to hash of numpy arrays.
assistant
Here is a Python function to hash of numpy arrays

import numpy as np

def hash_array(array):
    """
    Return hash of numpy array.
    """
    return hash(array.tobytes())

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

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

#Example Output
# -1704661566289543319

#Remember to inspect code for bugs.