code: def test_ddp_save_load(accelerator, tmp_path):
      """Test that DDP model checkpoints can be saved and loaded successfully."""
      fabric = Fabric(
          devices=2, accelerator=accelerator, strategy="ddp_spawn"
      )
      fabric.launch(_run_ddp_save_load, tmp_path)
  
file_path: pytorch-lightning/tests/tests_fabric/strategies/test_ddp_integration.py
imports: from copy import deepcopy
  import pytest
  import torch
  from lightning.fabric import Fabric
  from tests_fabric.helpers.runif import RunIf
  from tests_fabric.strategies.test_single_device import _run_test_clip_gradients
label_desc: Use image node_id 1 for calling a global function with example usage: test_ddp_save_load(accelerator, tmp_path) without return types