code: def convert_ontonotes_file(filename, simplify, bigger_first):
      assert "en_ontonotes" in filename
      if not os.path.exists(filename):
          raise FileNotFoundError(
              "Cannot convert missing file %s" % filename
          )
      new_filename = filename.replace(
          "en_ontonotes", "en_ontonotes-multi"
      )
  
      with open(filename) as fin:
          doc = json.load(fin)
  
      for sentence in doc:
          for word in sentence:
              ner = word["ner"]
              if simplify:
                  simplified = simplify_ontonotes_to_worldwide(ner)
              else:
                  simplified = "-"
              if bigger_first:
                  word["multi_ner"] = (ner, simplified)
              else:
                  word["multi_ner"] = (simplified, ner)
  
      with open(new_filename, "w") as fout:
          json.dump(doc, fout, indent=2)
  
file_path: stanza/stanza/utils/datasets/ner/ontonotes_multitag.py
imports: import argparse
  import json
  import os
  import shutil
  from stanza.utils import default_paths
  from stanza.utils.datasets.ner.utils import combine_files
  from stanza.utils.datasets.ner.simplify_ontonotes_to_worldwide import simplify_ontonotes_to_worldwide
label_desc: Use image node_id 1 for calling a global function with example usage: convert_ontonotes_file(filename, simplify, bigger_first) without return types