code: def test_basic(ddp_cls, test_case):
      """Test adascale with DDP without gradient accumulation"""
      world_size = 2
      temp_file_name = tempfile.mkstemp()[1]
  
      mp.spawn(
          _test_basic_func,
          args=(ddp_cls, world_size, temp_file_name, test_case),
          nprocs=world_size,
          join=True,
      )
  
imports: import tempfile
  import numpy
  import pytest
  import torch
  from torch import Tensor
  import torch.distributed
  import torch.multiprocessing
  from torch.nn import Linear
  from torch.nn.parallel import DistributedDataParallel
  from torch.optim import SGD
  from fairscale.fair_dev.testing.golden_testing_data import adascale_test_data
  from fairscale.fair_dev.testing.testing import skip_if_single_gpu
  from fairscale.internal import torch_version
  from fairscale.nn.data_parallel import FullyShardedDataParallel
  from fairscale.nn.data_parallel import ShardedDataParallel
  from fairscale.optim import OSS, AdaScale
label_desc: Use image node_id 3 for calling a global function with example usage: test_basic(ddp_cls, test_case) without return types