code: def process_dataset(short_name, conll_path, ner_output_path):
      try:
          from datasets import load_dataset
      except ImportError as e:
          raise ImportError(
              "Please install the datasets package to process CoNLL03 with Stanza"
          )
  
      if short_name == "en_ontonotes":
          # there is an english_v12, but it is filled with junk annotations
          # for example, near the end:
          #   And John_O, I realize
          config_name = "english_v4"
      elif short_name in ("zh_ontonotes", "zh-hans_ontonotes"):
          config_name = "chinese_v4"
      elif short_name == "ar_ontonotes":
          config_name = "arabic_v4"
      else:
          raise ValueError(
              "Unknown short name for downloading ontonotes: %s"
              % short_name
          )
      dataset = load_dataset(
          "conll2012_ontonotesv5", config_name, cache_dir=conll_path
      )
      datasets = [
          convert_dataset_section(config_name, x)
          for x in [
              dataset["train"],
              dataset["validation"],
              dataset["test"],
          ]
      ]
      write_dataset(datasets, ner_output_path, short_name)
  
imports: import os
  from stanza.utils.default_paths import get_default_paths
  from stanza.utils.datasets.ner.utils import write_dataset
label_desc: Use image node_id 2 for calling a global function with example usage: process_dataset(short_name, conll_path, ner_output_path) without return types