def METHOD_NAME(cls, classobj):
    msg = ('Format could not be identified based on the file name or '
           'contents, please provide a "format" argument.'
           f'\n{cls._get_format_table_str(classobj)}')
    raise IORegistryError(msg)