def is_file_format(file_name, file_extensions):
    """ Checks whether the extension of the given file is in a list of file extensions.

    :param file_name: Filename to check
    :param file_extensions: File extensions as a list
    :returns: True if the list contains the extension of the given file_name
    """
    file_extension = file_name.split('.')[-1]
    return file_extension in file_extensions