class_docstr: XTREME-S Benchmark datasets.
class_docstr_tok: ["XTREME-S","Benchmark","datasets","."]
code: def _fleurs_split_generators(self, dl_manager):
      data_url_format = self.builder_config.data_urls[0]
  
      if self.builder_config.lang_name == "all":
          data_urls = {
              l: data_url_format.format(l) for l in _FLEURS_LANG
          }
      else:
          data_urls = {
              self.builder_config.lang_name: data_url_format.format(
                  self.builder_config.lang_name
              )
          }
  
      archive_path = dl_manager.download_and_extract(data_urls)
      audio_paths = {
          l: os.path.join(v, l, "audio")
          for l, v in archive_path.items()
      }
      text_paths = {
          l: os.path.join(v, l) for l, v in archive_path.items()
      }
  
      def create_split_generator(
          split: str, file_prefix: str
      ) -> tfds.core.SplitGenerator:
          return tfds.core.SplitGenerator(
              name=split,
              gen_kwargs={
                  "audio_path": {
                      l: os.path.join(v, file_prefix)
                      for l, v in audio_paths.items()
                  },
                  "text_path": {
                      l: os.path.join(v, f"{file_prefix}.tsv")
                      for l, v in text_paths.items()
                  },
              },
          )
  
      return [
          create_split_generator(
              split=tfds.core.Split.TRAIN, file_prefix="train"
          ),
          create_split_generator(
              split=tfds.core.Split.VALIDATION, file_prefix="dev"
          ),
          create_split_generator(
              split=tfds.core.Split.TEST, file_prefix="test"
          ),
      ]
  
file_path: datasets/tensorflow_datasets/audio/xtreme_s/xtreme_s.py
imports: import collections
  import os
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 4 for calling the XtremeS obj's underlying member method code with example usage: obj._fleurs_split_generators(dl_manager) and returns: list, tfds