class_docstr: Cluster environment for training on a TPU Pod with the `PyTorch/XLA <https://pytorch.org/xla>`_ library.
  
  A list of environment variables set by XLA can be found
  `here <https://github.com/pytorch/xla/blob/master/torch_xla/core/xla_env_vars.py>`_.
class_docstr_tok: ["Cluster","environment","for","training","on","a","TPU","Pod","with","the","`","PyTorch\/XLA","<","https",":","\/\/pytorch.org\/xla",">","`","_","library",".","A","list","of","environment","variables","set","by","XLA","can","be","found","`","here","<","https",":","\/\/github.com\/pytorch\/xla\/blob\/master\/torch_xla\/core\/xla_env_vars.py",">","`","_","."]
code: def __init__(self, *args: Any, **kwargs: Any) -> None:
      if not _XLA_AVAILABLE:
          raise ModuleNotFoundError(str(_XLA_AVAILABLE))
      super().__init__(*args, **kwargs)
  
file_path: pytorch-lightning/src/lightning/fabric/plugins/environments/xla.py
imports: import functools
  import logging
  from typing import Any
  from typing_extensions import override
  from lightning.fabric.accelerators.xla import _XLA_AVAILABLE, _XLA_GREATER_EQUAL_2_1, XLAAccelerator
  from lightning.fabric.plugins.environments.cluster_environment import ClusterEnvironment
label_desc: Use image node_id 1 to create a new XLAEnvironment object from inherited base classes: ClusterEnvironment with example: obj = XLAEnvironment()