code: def convert_treebank(short_name, upos, output_name, paths):
      in_dir = paths["CONSTITUENCY_DATA_DIR"]
      in_files = [
          os.path.join(in_dir, "%s_%s.mrg" % (short_name, shard))
          for shard in SHARDS
      ]
      for in_file in in_files:
          if not os.path.exists(in_file):
              raise FileNotFoundError(
                  "Cannot find expected datafile %s" % in_file
              )
  
      out_dir = paths["POS_DATA_DIR"]
      if not os.path.exists(out_dir):
          os.makedirs(out_dir)
      if output_name is None:
          output_name = short_name
      out_files = [
          os.path.join(
              out_dir, "%s.%s.in.conllu" % (output_name, shard)
          )
          for shard in SHARDS
      ]
      gold_files = [
          os.path.join(
              out_dir, "%s.%s.gold.conllu" % (output_name, shard)
          )
          for shard in SHARDS
      ]
  
      for in_file, out_file in zip(in_files, out_files):
          convert_file(in_file, out_file, upos)
      for out_file, gold_file in zip(out_files, gold_files):
          shutil.copy2(out_file, gold_file)
  
file_path: stanza/stanza/utils/datasets/pos/convert_trees_to_pos.py
imports: import argparse
  import os
  import shutil
  import sys
  from stanza.models.constituency import tree_reader
  import stanza.utils.default_paths
  from stanza.utils.get_tqdm import get_tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: convert_treebank(short_name, upos, output_name, paths) without return types