class_docstr: Legacy class.
  
  Use :class:`~lightning.fabric.strategies.single_xla.SingleDeviceXLAStrategy` instead.
class_docstr_tok: ["Legacy","class",".","Use",":","class",":","`","~lightning.fabric.strategies.single_xla.SingleDeviceXLAStrategy","`","instead","."]
code: def register_strategies(
      cls, strategy_registry: _StrategyRegistry
  ) -> None:
      if "single_tpu" not in strategy_registry:
          strategy_registry.register(
              "single_tpu",
              cls,
              description="Legacy class. Use `single_xla` instead.",
          )
  
imports: import sys
  from typing import Any
  import lightning.fabric
  from lightning.fabric.accelerators import XLAAccelerator
  from lightning.fabric.plugins.precision import XLAPrecision
  from lightning.fabric.strategies import _StrategyRegistry
  from lightning.fabric.strategies.single_xla import SingleDeviceXLAStrategy
  from lightning.fabric.utilities.rank_zero import rank_zero_deprecation
label_desc: Use image node_id 2 for calling the SingleTPUStrategy obj's underlying member method code with example usage: obj.register_strategies(cls, strategy_registry) without return types