code: def process_partial_ud_treebank(
      treebank, udbase_dir, tokenizer_dir, short_name, short_language
  ):
      """
      Process a UD treebank with only train/test splits
  
      For example, in UD 2.7:
        UD_Buryat-BDT
        UD_Galician-TreeGal
        UD_Indonesian-CSUI
        UD_Kazakh-KTB
        UD_Kurmanji-MG
        UD_Latin-Perseus
        UD_Livvi-KKPP
        UD_North_Sami-Giella
        UD_Old_Russian-RNC
        UD_Sanskrit-Vedic
        UD_Slovenian-SST
        UD_Upper_Sorbian-UFAL
        UD_Welsh-CCG
      """
      train_input_conllu = common.find_treebank_dataset_file(
          treebank, udbase_dir, "train", "conllu"
      )
      test_input_conllu = common.find_treebank_dataset_file(
          treebank, udbase_dir, "test", "conllu"
      )
  
      train_output_conllu = common.tokenizer_conllu_name(
          tokenizer_dir, short_name, "train"
      )
      dev_output_conllu = common.tokenizer_conllu_name(
          tokenizer_dir, short_name, "dev"
      )
      test_output_conllu = common.tokenizer_conllu_name(
          tokenizer_dir, short_name, "test"
      )
  
      if (
          common.num_words_in_file(train_input_conllu) <= 1000
          and common.num_words_in_file(test_input_conllu) > 5000
      ):
          train_input_conllu, test_input_conllu = (
              test_input_conllu,
              train_input_conllu,
          )
  
      if not split_train_file(
          treebank=treebank,
          train_input_conllu=train_input_conllu,
          train_output_conllu=train_output_conllu,
          dev_output_conllu=dev_output_conllu,
      ):
          return
  
      # the test set is already fine
      # currently we do not do any augmentation of these partial treebanks
      prepare_ud_dataset(
          treebank,
          udbase_dir,
          tokenizer_dir,
          short_name,
          short_language,
          "test",
          augment=False,
          input_conllu=test_input_conllu,
          output_conllu=test_output_conllu,
      )
  
imports: import argparse
  import glob
  import os
  import random
  import re
  import tempfile
  from collections import Counter
  from stanza.models.common.constant import treebank_to_short_name
  import stanza.utils.datasets.common
  from stanza.utils.datasets.common import read_sentences_from_conllu, write_sentences_to_conllu, INT_RE, MWT_RE, MWT_OR_COPY_RE
  import stanza.utils.datasets.tokenization.convert_ml_cochin
  import stanza.utils.datasets.tokenization.convert_my_alt
  import stanza.utils.datasets.tokenization.convert_vi_vlsp
  import stanza.utils.datasets.tokenization.convert_th_best
  import stanza.utils.datasets.tokenization.convert_th_lst20
  import stanza.utils.datasets.tokenization.convert_th_orchid
label_desc: Use image node_id 39 for calling a global function with example usage: process_partial_ud_treebank(treebank, udbase_dir, tokenizer_dir, short_name, short_language) without return types