code: def test_xla_debug_strategy_registry(_, tpu_available):
      strategy = "xla_debug"
  
      assert strategy in StrategyRegistry
      assert StrategyRegistry[strategy]["init_params"] == {
          "debug": True
      }
      assert StrategyRegistry[strategy]["strategy"] == XLAStrategy
  
      trainer = Trainer(strategy=strategy)
      assert isinstance(trainer.strategy, XLAStrategy)
  
file_path: pytorch-lightning/tests/tests_pytorch/strategies/test_registry.py
imports: from unittest import mock
  import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.plugins import CheckpointIO
  from lightning.pytorch.strategies import DDPStrategy, DeepSpeedStrategy, FSDPStrategy, StrategyRegistry, XLAStrategy
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 3 for calling a global function with example usage: test_xla_debug_strategy_registry(_, tpu_available) without return types