code: def get_args(tmpdir, config_dict):
      parser = argparse.ArgumentParser()
      parser.add_argument("--zero", type=int, default=3)
      parser.add_argument("--local_rank", type=int)
  
      parser.add_argument("--mics_shard_size", default=2, type=int)
      parser.add_argument(
          "--mics_hierarchical_params_gather",
          default=False,
          action="store_true",
      )
      args = parser.parse_args()  # args=''
  
      config_dict["zero_optimization"]["stage"] = args.zero
      config_dict["zero_optimization"][
          "mics_shard_size"
      ] = args.mics_shard_size
      config_dict["zero_optimization"][
          "mics_hierarchical_params_gather"
      ] = args.mics_hierarchical_params_gather
  
      # print('config_dict["zero_optimization"]', config_dict["zero_optimization"])
      config_path = create_config_from_dict(tmpdir, config_dict)
  
      args.deepspeed_config = config_path
      return args
  
file_path: DeepSpeed/tests/small_model_debugging/test_mics_config.py
imports: import os
  import json
  import argparse
  import torch
  import deepspeed
  from torch.utils.data.distributed import DistributedSampler
  import deepspeed.comm
label_desc: Use image node_id 3 for calling a global function with example usage: get_args(tmpdir, config_dict) and returns: args