code: def test_core_deepscale_arguments():
      parser = basic_parser()
      parser = deepspeed.add_config_arguments(parser)
      args = parser.parse_args(
          [
              "--num_epochs",
              "2",
              "--deepspeed",
              "--deepspeed_config",
              "foo.json",
          ]
      )
      assert args
  
      assert hasattr(args, "num_epochs")
      assert args.num_epochs == 2
  
      assert hasattr(args, "deepspeed")
      assert type(args.deepspeed) == bool
      assert args.deepspeed == True
  
      assert hasattr(args, "deepspeed_config")
      assert type(args.deepspeed_config) == str
      assert args.deepspeed_config == "foo.json"
  
file_path: deepspeed/tests/unit/launcher/test_ds_arguments.py
imports: import argparse
  import pytest
  import deepspeed
  from deepspeed.utils.numa import parse_range_list
label_desc: Use image node_id 7 for calling a global function with example usage: test_core_deepscale_arguments() without return types