code: def test_params_synced_during_nonfit():
      model = MyModel()
      trainer = Trainer(
          barebones=True,
          devices=2,
          accelerator="cpu",
          strategy="ddp",
      )
      trainer.test(model, [0])
  
file_path: pytorch-lightning/tests/tests_pytorch/overrides/test_distributed.py
imports: from typing import Iterable
  import pytest
  import torch
  from lightning.fabric.utilities.data import has_len
  from lightning.pytorch import LightningModule, Trainer, seed_everything
  from lightning.pytorch.overrides.distributed import UnrepeatedDistributedSampler, _IndexBatchSamplerWrapper
  from torch.utils.data import BatchSampler, SequentialSampler
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: test_params_synced_during_nonfit() without return types