code: def test_deepspeed_precision_choice(_, precision):
      """Test to ensure precision plugin is correctly chosen.
  
      DeepSpeed handles precision via custom DeepSpeedPrecision.
  
      """
      connector = _Connector(
          accelerator="auto",
          strategy="deepspeed",
          precision=precision,
      )
  
      assert isinstance(connector.strategy, DeepSpeedStrategy)
      assert isinstance(
          connector.strategy.precision, DeepSpeedPrecision
      )
      assert connector.strategy.precision.precision == str(precision)
  
imports: from unittest import mock
  import pytest
  from lightning.fabric.connector import _Connector
  from lightning.fabric.plugins import DeepSpeedPrecision
  from lightning.fabric.strategies import DeepSpeedStrategy
  from tests_fabric.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: test_deepspeed_precision_choice(_, precision) without return types