def identify_factory(*extensions):
def identify(origin, filepath, fileobj, *args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>if (isinstance(filepath, string_types) and<EOL>filepath.endswith(extensions)):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL><DEDENT>return identify<EOL>
Factory function to create I/O identifiers for a set of extensions

    The returned function is designed for use in the unified I/O registry
    via the `astropy.io.registry.register_identifier` hool.

    Parameters
    ----------
    extensions : `str`
        one or more file extension strings

    Returns
    -------
    identifier : `callable`
        an identifier function that tests whether an incoming file path
        carries any of the given file extensions (using `str.endswith`)