code: def gen_ds_fairseq_arg():
      parser = options.get_training_parser()
      parser.add_argument(
          "--deepspeed_config",
          default=None,
          type=str,
          required=True,
          help="DeepSpeed json configuration file.",
      )
      fs_args = options.parse_args_and_arch(parser, modify_parser=None)
  
      ds_config = gen_ds_config(fs_args)
      delattr(fs_args, "deepspeed_config")
      return fs_args, ds_config
  
imports: import json
  from fairseq import options
  from deepspeed.runtime.config_utils import dict_raise_error_on_duplicate_keys
label_desc: Use image node_id 1 for calling a global function with example usage: gen_ds_fairseq_arg() and returns: fs_args,  ds_config