code: def test_amp(accelerator, precision, expected_dtype):
      fabric = Fabric(
          accelerator=accelerator,
          precision=precision,
          devices=2,
          strategy="ddp_spawn",
      )
      fabric.launch(_test_amp, expected_dtype)
  
file_path: pytorch-lightning/tests/tests_fabric/plugins/precision/test_amp_integration.py
imports: import pytest
  import torch
  import torch.nn
  from lightning.fabric import Fabric, seed_everything
  from tests_fabric.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: test_amp(accelerator, precision, expected_dtype) without return types