human
What is a good Python function to copy the shape of an array in Python.
assistant
Here is a Python function to copy the shape of an array in Python

import numpy as np

def copy_shape(arr):
    """
    >>> arr = np.array([[1, 2], [3, 4]])
    >>> copy_shape(arr)
    (2, 2)
    """
    return arr.shape

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

# Calling the function
print((copy_shape(arr)))

#Example Output
# (2, 2)

#Remember to inspect code for bugs.