def can_preview(file):
supported_extensions = ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>return file.has_extensions(*supported_extensions) and validate(file)<EOL>
Determine if the given file can be previewed.