from pathlib import Path


def is_media_file(media_file_extensions: list, file_name: str) -> bool:
    """ If the file extension is in a list of media_file_extensions, then return True (this is a media file), else return False """
    file_extension = Path(file_name).suffix
    if file_extension in media_file_extensions:
        return True
    return False