human
What is a good Python code to check all inputs for type.
assistant
Here is a Python code to check all inputs for type

import numpy as np

def check_all_inputs_for_type(input_list):
    """
    Check all inputs for type

    :param input_list:
    """
    for i in input_list:
        if not isinstance(i, (int, float, str, bool, list, tuple, np.ndarray)):
            raise TypeError("Input {} is not of type (int, float, str, bool, list, tuple, np.ndarray)".format(i))

# Enter the list
input_list = [1, 2, 3, 4, 5]

# Calling the function
print((check_all_inputs_for_type(input_list)))

#Example Output
# None

#Remember to inspect code for bugs.