class_docstr: Legacy class.
  
  Use :class:`~lightning.pytorch.strategies.single_xla.SingleDeviceXLAStrategy` instead.
class_docstr_tok: ["Legacy","class",".","Use",":","class",":","`","~lightning.pytorch.strategies.single_xla.SingleDeviceXLAStrategy","`","instead","."]
code: def __init__(self, *args: Any, **kwargs: Any) -> None:
      rank_zero_deprecation(
          "The 'single_tpu' strategy is deprecated. Use 'single_xla' instead."
      )
      super().__init__(*args, **kwargs)
  
imports: import sys
  from typing import Any
  import lightning.pytorch
  from lightning.fabric.strategies import _StrategyRegistry
  from lightning.pytorch.accelerators.xla import XLAAccelerator
  from lightning.pytorch.plugins.precision import XLAPrecision
  from lightning.pytorch.strategies.single_xla import SingleDeviceXLAStrategy
  from lightning.pytorch.utilities.rank_zero import rank_zero_deprecation
label_desc: Use image node_id 1 to create a new SingleTPUStrategy object from inherited base classes: SingleDeviceXLAStrategy with example: obj = SingleTPUStrategy()