class_docstr: DatasetBuilder for xtreme_pos dataset.
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(
      self, dl_manager: tfds.download.DownloadManager
  ):
      """Returns SplitGenerators."""
      dl_dir = dl_manager.download_and_extract(_DATA_URLS)
      subpath = os.path.join(dl_dir, "ud-treebanks-v2.5")
      lang = _LANGS[self.builder_config.language]
      data_dir = os.path.join(subpath, "*_" + lang + "*")
      folders = sorted(tf.io.gfile.glob(data_dir))
  
      if lang == "Kazakh":
          paths = {"train": [], "test": []}
          for split in paths:
              for folder in folders:
                  for file in sorted(tf.io.gfile.listdir(folder)):
                      if split in file and file.endswith(".conllu"):
                          paths[split].append(
                              os.path.join(folder, file)
                          )
  
      elif lang in ["Tagalog", "Thai", "Yoruba"]:
          paths = {"test": []}
          for folder in folders:
              for file in sorted(tf.io.gfile.listdir(folder)):
                  if "test" in file and file.endswith(".conllu"):
                      paths["test"].append(os.path.join(folder, file))
  
      else:
          paths = {"train": [], "dev": [], "test": []}
          for split in paths:
              # We exclude Arabic-NYUAD which does not contains any words, only `_`.
              for folder in folders:
                  for file in sorted(tf.io.gfile.listdir(folder)):
                      if (
                          split in file
                          and file.endswith(".conllu")
                          and "NYUAD" not in folder
                      ):
                          paths[split].append(
                              os.path.join(folder, file)
                          )
  
      return {  # pylint:disable=g-complex-comprehension
          split: self._generate_examples(
              filepaths=split_files,
              process_example_fn=conllu_dataset_builder.get_xtreme_pos_example,
          )
          for split, split_files in paths.items()
      }
  
file_path: datasets/tensorflow_datasets/datasets/xtreme_pos/xtreme_pos_dataset_builder.py
imports: import os
  from tensorflow_datasets.core.dataset_builders.conll import conllu_dataset_builder
  from tensorflow_datasets.core.dataset_builders.conll import conllu_dataset_builder_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Builder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: unknown