<human>:  Can you show me a Python program to check the interval in a list.
<bot>:

# Calling the function
print((__check_interval(list1, 2, 5)))

#Example Output
# True

#Remember to inspect code for bugs.