code: def build_combined_french_dataset(paths, model_type, dataset):
      udbase_dir = paths["UDBASE_GIT"]
      if dataset == "train":
          train_treebanks = [
              "UD_French-GSD",
              "UD_French-ParisStories",
              "UD_French-Rhapsodie",
              "UD_French-Sequoia",
          ]
          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)
      else:
          gsd_conllu = common.find_treebank_dataset_file(
              "UD_French-GSD", udbase_dir, dataset, "conllu"
          )
          sents = read_sentences_from_conllu(gsd_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 31 for calling a global function with example usage: build_combined_french_dataset(paths, model_type, dataset) and returns: sents