code: def convert_json_to_bio(input_filename, output_filename):
      with open(input_filename, encoding="utf-8") as fin:
          doc = Document(json.load(fin))
      sentences = [
          [(word.text, word.ner) for word in sentence.tokens]
          for sentence in doc.sentences
      ]
      sentences = process_tags(sentences, "bioes")
      with open(output_filename, "w", encoding="utf-8") as fout:
          for sentence in sentences:
              for word in sentence:
                  fout.write("%s\t%s\n" % word)
              fout.write("\n")
  
imports: import argparse
  import json
  import os
  from stanza.models.common.doc import Document
  from stanza.models.ner.utils import process_tags
  from stanza.utils.default_paths import get_default_paths
label_desc: Use image node_id 1 for calling a global function with example usage: convert_json_to_bio(input_filename, output_filename) without return types