human
how to check the interval in a list in.
assistant
Here is a Python function to check the interval in a list

import numpy as np

def check_interval(list, interval):
    """
    check_interval(list, interval)

    Check if the interval is in the list.

    Parameters
    ----------
    list : list
        The list to check.
    interval : tuple
        The interval to check.

    Returns
    -------
    bool
        True if the interval is in the list, False otherwise.
    """
    return list.index(interval[0]) <= list.index(interval[1])

# Enter the list
list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Enter the interval
interval = (3, 7)

# Calling the function
print((check_interval(list, interval)))

#Example Output
# True

#Remember to inspect code for bugs.