code: def build_combined_english_dataset(paths, model_type, dataset):
      """
      en_combined is currently EWT, GUM, PUD, Pronouns, and handparsed
      """
      udbase_dir = paths["UDBASE"]
      check_gum_ready(udbase_dir)
  
      if dataset == "train":
          # TODO: include more UD treebanks, possibly with xpos removed
          #  UD_English-ParTUT - xpos are different
          # also include "external" treebanks such as PTB
          # NOTE: in order to get the best results, make sure each of these treebanks have the latest edits applied
          train_treebanks = [
              "UD_English-EWT",
              "UD_English-GUM",
              "UD_English-GUMReddit",
          ]
          test_treebanks = ["UD_English-PUD", "UD_English-Pronouns"]
          sents = []
          for treebank in train_treebanks:
              conllu_file = common.find_treebank_dataset_file(
                  treebank, udbase_dir, "train", "conllu", fail=True
              )
              new_sents = read_sentences_from_conllu(conllu_file)
              print(
                  "Read %d sentences from %s"
                  % (len(new_sents), conllu_file)
              )
              sents.extend(new_sents)
          for treebank in test_treebanks:
              conllu_file = common.find_treebank_dataset_file(
                  treebank, udbase_dir, "test", "conllu", fail=True
              )
              new_sents = read_sentences_from_conllu(conllu_file)
              print(
                  "Read %d sentences from %s"
                  % (len(new_sents), conllu_file)
              )
              sents.extend(new_sents)
      else:
          ewt_conllu = common.find_treebank_dataset_file(
              "UD_English-EWT", udbase_dir, dataset, "conllu"
          )
          sents = read_sentences_from_conllu(ewt_conllu)
  
      return sents
  
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 26 for calling a global function with example usage: build_combined_english_dataset(paths, model_type, dataset) and returns: sents