code: def call_register_accelerators(
      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
      )
  
file_path: pytorch-lightning/src/lightning/fabric/accelerators/registry.py
imports: from typing import Any, Callable, Dict, List, Optional
  from typing_extensions import override
  from lightning.fabric.utilities.exceptions import MisconfigurationException
  from lightning.fabric.utilities.registry import _register_classes
label_desc: Use image node_id 1 for calling a global function with example usage: call_register_accelerators(registry, base_module) without return types