code: def save_config(config, path, verbose=True):
      with open(path, "w") as outfile:
          json.dump(config, outfile, indent=2)
      if verbose:
          print("Config saved to file {}".format(path))
      return config
  
file_path: stanza/stanza/models/common/seq2seq_utils.py
imports: from collections import Counter
  import random
  import json
  import torch
  import stanza.models.common.seq2seq_constant
label_desc: Use image node_id 5 for calling a global function with example usage: save_config(config, path, verbose) and returns: config