def METHOD_NAME(registry: _AcceleratorRegistry, base_module: str) -> None:  # pragma: no-cover
    """Legacy.
    Do not use.
    """
    import importlib
    module = importlib.import_module(base_module)
    from lightning.fabric.accelerators.accelerator import Accelerator
    _register_classes(registry, "register_accelerators", module, Accelerator)