code: def convert_file(in_file, out_file):
      with open(in_file) as fin:
          gold_doc = json.load(fin)
  
      for sentence in gold_doc:
          for word in sentence:
              if "ner" not in word:
                  continue
              word["ner"] = simplify_ontonotes_to_worldwide(word["ner"])
  
      with open(out_file, "w", encoding="utf-8") as fout:
          json.dump(gold_doc, fout, indent=2)
  
imports: import argparse
  import glob
  import json
  import os
  from stanza.utils.default_paths import get_default_paths
label_desc: Use image node_id 2 for calling a global function with example usage: convert_file(in_file, out_file) without return types