human
Python function for restricting input of to listlike.
assistant
Here is a Python function for restricting input of to listlike

import numpy as np

def listlike(x):
    """
    Check if x is a listlike object.
    """
    return isinstance(x, (list, tuple, np.ndarray))

# Enter the input
x = 'hello'

# Calling the function
print((listlike(x)))

#Example Output
# False

#Remember to inspect code for bugs.