class_docstr: XTREME-S Benchmark datasets.
class_docstr_tok: ["XTREME-S","Benchmark","datasets","."]
code: def _fleurs_generate_examples(self, audio_path, text_path):
      key = 0
  
      gender_to_id = {"MALE": 0, "FEMALE": 1, "OTHER": 2}
  
      for lang_id in text_path.keys():
          text_file = text_path[lang_id]
          audio_dir = audio_path[lang_id]
  
          with tf.io.gfile.GFile(text_file, "r") as f:
              lines = f.readlines()
              for line in lines:
                  (
                      index,
                      file_name,
                      raw_transcription,
                      transcription,
                      _,  # character transcription
                      num_samples,
                      gender,
                  ) = line.strip().split("\t")
  
                  lang_group = _FLEURS_LANG_TO_GROUP[lang_id]
  
                  yield key, {
                      "id": int(index),
                      "path": os.path.join(audio_dir, file_name),
                      "audio": os.path.join(audio_dir, file_name),
                      "raw_transcription": raw_transcription,
                      "transcription": transcription,
                      "num_samples": int(num_samples),
                      "gender": gender_to_id[gender],
                      "lang_id": _FLEURS_LANG.index(lang_id),
                      "language": _FLEURS_LANG_TO_LONG[lang_id],
                      "lang_group_id": list(
                          _FLEURS_GROUP_TO_LONG.keys()
                      ).index(lang_group),
                  }
                  key += 1
  
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 5 for calling the XtremeS obj's underlying member method code with example usage: obj._fleurs_generate_examples(audio_path, text_path) without return types