code: def test_nesting_init(self):
      ds_config = dict(
          train_batch_size=1, zero_optimization=dict(stage=3)
      )
  
      with deepspeed.zero.Init(config_dict_or_path=ds_config):
          with deepspeed.zero.Init(config_dict_or_path=ds_config):
              model = torch.nn.Linear(4, 4)
  
      # ensure that zero3 processed the parameter
      assert hasattr(model.weight, "ds_id")
  
      deepspeed_engine, *_ = deepspeed.initialize(
          model=model, config_params=ds_config
      )
  
file_path: DeepSpeed/tests/unit/runtime/zero/test_zero_nesting_init.py
imports: import torch
  from unit.common import DistributedTest
  from transformers import VisionEncoderDecoderModel
  from transformers.integrations.deepspeed import HfDeepSpeedConfig
  import deepspeed
label_desc: Use image node_id 1 for calling the TestNestingInit obj's underlying member method code with example usage: obj.test_nesting_init() without return types