<human>:  What is a good Python function to check if a file ends with any allowed extension.
<bot>:

# Calling the function
print((is_file_allowed_extension(file_name, extensions)))

#Example Output
# True

#Remember to inspect code for bugs.