class_docstr: Librispeech dataset.
class_docstr_tok: ["Librispeech","dataset","."]
docstr: Generates examples as dicts.
docstr_tok: ["Generates","examples","as","dicts","."]
code: def _generate_examples(self, directory: epath.Path):
      """Generates examples as dicts."""
      transcripts_glob = os.path.join(
          directory, "LibriSpeech", "*/*/*/*.txt"
      )
      transcripts_files = tf.io.gfile.glob(transcripts_glob)
  
      for transcript_file in transcripts_files:
          yield from _generate_librispeech_examples(transcript_file)
  
file_path: datasets/tensorflow_datasets/datasets/librispeech/librispeech_dataset_builder.py
imports: from __future__ import annotations
  import os
  from typing import Iterable, List
  from etils import epath
  import numpy
  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 Builder obj's underlying member method code with example usage: obj._generate_examples(directory) without return types