@classmethod
def register_backend(cls, name, backend):
    if (not inspect.isclass(backend)):
        raise TypeError(f'backend should be a class but got {type(backend)}')
    if (not issubclass(backend, BaseStorageBackend)):
        raise TypeError(f'backend {backend} is not a subclass of BaseStorageBackend')
    cls._backends[name] = backend
@classmethod
def register_backend(cls, name, backend):
    if (not inspect.isclass(backend)):
        raise TypeError(f'backend should be a class but got {type(backend)}')
    if (not issubclass(backend, BaseStorageBackend)):
        raise TypeError(f'backend {backend} is not a subclass of BaseStorageBackend')
    cls._backends[name] = backend