class_docstr: DatasetBuilder for RLU.
docstr: Yields examples from one file.
docstr_tok: ["Yields","examples","from","one","file","."]
code: def generate_examples_one_file(
      self, path
  ) -> Generator[Tuple[str, Dict[str, Any]], None, None]:
      """Yields examples from one file."""
      # Dataset of tf.Examples containing full episodes.
      example_ds = tf.data.TFRecordDataset(
          filenames=str(path), compression_type="GZIP"
      )
      # Dataset of episodes, each represented as a dataset of steps.
      episode_ds = example_ds.map(
          self.tf_example_to_step_ds,
          num_parallel_calls=tf.data.experimental.AUTOTUNE,
      )
      episode_ds = tfds.as_numpy(episode_ds)
      for e in episode_ds:
          yield self.get_episode_id(e), e
  
imports: from __future__ import annotations
  import os
  from typing import Any, Dict, Generator, List, Tuple
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 11 for calling the RLUBuilder obj's underlying member method code with example usage: obj.generate_examples_one_file(path) without return types