code: def test(self):
      with deepspeed.zero.Init():
          l = torch.nn.Linear(6, 3)
      assert l.weight.ds_status == ZeroParamStatus.NOT_AVAILABLE
      assert l.weight.shape == torch.Size(partitioned_param_data_shape)
  
      # Ensure there is no impact outside the context
      l2 = torch.nn.Linear(6, 3)
      assert not hasattr(l2.weight, "ds_status")
      assert l2.weight.numel() == l2.in_features * l2.out_features
  
      with deepspeed.zero.GatheredParameters(l.weight):
          assert l.weight.ds_status == ZeroParamStatus.AVAILABLE
          assert l.weight.numel() == l.in_features * l.out_features
  
imports: import os
  from types import SimpleNamespace
  import torch
  import pytest
  import deepspeed
  from deepspeed.runtime.zero.partition_parameters import ZeroParamStatus, partitioned_param_data_shape
  import deepspeed.comm
  from unit.common import DistributedTest, get_master_port
label_desc: Use image node_id 1 for calling the TestScatterGather obj's underlying member method code with example usage: obj.test() without return types