code: def build_combined_italian_dataset(paths, model_type, dataset):
      udbase_dir = paths["UDBASE"]
      if dataset == "train":
          # could maybe add ParTUT, but that dataset has a slightly different xpos set
          # (no DE or I)
          # and I didn't feel like sorting through the differences
          # Note: currently these each have small changes compared with
          # the UD2.11 release.  See the issues (possibly closed by now)
          # filed by AngledLuffa on each of the treebanks for more info.
          treebanks = [
              "UD_Italian-ISDT",
              "UD_Italian-VIT",
          ]
          if model_type is not common.ModelType.TOKENIZER:
              treebanks.extend(
                  ["UD_Italian-TWITTIRO", "UD_Italian-PoSTWITA"]
              )
          print(
              "Building {} dataset out of {}".format(
                  model_type, " ".join(treebanks)
              )
          )
          sents = []
          for treebank in treebanks:
              conllu_file = common.find_treebank_dataset_file(
                  treebank, udbase_dir, dataset, "conllu", fail=True
              )
              sents.extend(read_sentences_from_conllu(conllu_file))
      else:
          istd_conllu = common.find_treebank_dataset_file(
              "UD_Italian-ISDT", udbase_dir, dataset, "conllu"
          )
          sents = read_sentences_from_conllu(istd_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 24 for calling a global function with example usage: build_combined_italian_dataset(paths, model_type, dataset) and returns: sents