code: def test_selected_dtype(precision, expected_dtype):
      plugin = HalfPrecision(precision=precision)
      assert plugin.precision == precision
      assert plugin._desired_input_dtype == expected_dtype
  
imports: import pytest
  import torch
  from lightning.fabric.plugins.precision import HalfPrecision
label_desc: Use image node_id 1 for calling a global function with example usage: test_selected_dtype(precision, expected_dtype) without return types