code: def gen_ds_config(fs_args):
      ds_config = json.load(
          open(fs_args.deepspeed_config),
          object_pairs_hook=dict_raise_error_on_duplicate_keys,
      )
  
      # Different parameters in fairseq and deepspeed have the same effect.
      # For these parameters, we extract it from fairseq arguments and put it
      # int the deepspeed config file
      ds_config["steps_per_print"] = fs_args.log_interval
      return 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 2 for calling a global function with example usage: gen_ds_config(fs_args) and returns: ds_config