def METHOD_NAME(file):
    return (
        file.content_type.startswith(("audio/", "image/", "video/"))
        # default mimetype set by CommCare
        or file.content_type == "application/octet-stream"
        # supported by formplayer
        or file.content_type == "application/pdf"
    )