code: def _using_pjrt() -> bool:
      # delete me when torch_xla 2.2 is the min supported version, where XRT support has been dropped.
      if _XLA_GREATER_EQUAL_2_1:
          from torch_xla import runtime as xr
  
          return xr.using_pjrt()
      from torch_xla.experimental import pjrt
  
      return pjrt.using_pjrt()
  
imports: import functools
  from typing import Any, List, Union
  import torch
  from lightning_utilities.core.imports import RequirementCache
  from typing_extensions import override
  from lightning.fabric.accelerators.accelerator import Accelerator
  from lightning.fabric.accelerators.registry import _AcceleratorRegistry
  from lightning.fabric.utilities.device_parser import _check_data_type
label_desc: Use image node_id 1 for calling a global function with example usage: _using_pjrt() and returns: pjrt, xr