code: def test_deepspeed_strategy_registry_with_trainer(tmpdir, strategy):
      trainer = Trainer(
          default_root_dir=tmpdir,
          strategy=strategy,
          precision="16-mixed",
      )
  
      assert isinstance(trainer.strategy, DeepSpeedStrategy)
  
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 2 for calling a global function with example usage: test_deepspeed_strategy_registry_with_trainer(tmpdir, strategy) without return types