human
Can you show me a Python function to check element type in array.
assistant
Here is a Python function to check element type in arrays

import numpy as np

def is_numeric(x):
    """Check if the element is numeric"""
    return isinstance(x, (int, float, np.integer, np.floating))

# Creating an array
a = np.array([1, 2, 3])

# Calling the function
print((is_numeric(a)))

#Example Output
# False

#Remember to inspect code for bugs.