def METHOD_NAME():
    """Tests that registering a malformed loader fails."""
    class MissingExtensionsLoader:
        pass
    class InvalidTypeExtensionsLoader:
        extensions = "abc"
    class EmptyExtensionsLoader:
        extensions = []
    class InvalidExtensionsLoader:
        extensions = [123, None]
    registry = LoaderFileTypeRegistry.get_global_ptr()
    with pytest.raises(Exception):
        registry.register_type("invalid")
    with pytest.raises(Exception):
        registry.register_type(MissingExtensionsLoader)
    with pytest.raises(TypeError):
        registry.register_type(InvalidTypeExtensionsLoader)
    with pytest.raises(ValueError):
        registry.register_type(EmptyExtensionsLoader)
    with pytest.raises(TypeError):
        registry.register_type(InvalidExtensionsLoader)