code: def test_pruning_callback_ddp(
      tmpdir, parameters_to_prune, use_global_unstructured
  ):
      train_with_pruning_callback(
          tmpdir,
          parameters_to_prune=parameters_to_prune,
          use_global_unstructured=use_global_unstructured,
          strategy="ddp",
          accelerator="gpu",
          devices=2,
      )
  
imports: import re
  from collections import OrderedDict
  from logging import INFO
  from typing import Union
  import pytest
  import torch
  import torch.nn.utils.prune
  from lightning.pytorch import Trainer, seed_everything
  from lightning.pytorch.callbacks import ModelCheckpoint, ModelPruning
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from torch import nn
  from torch.nn import Sequential
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 4 for calling a global function with example usage: test_pruning_callback_ddp(tmpdir, parameters_to_prune, use_global_unstructured) without return types