class_docstr: Starcraft video datasets.
class_docstr_tok: ["Starcraft","video","datasets","."]
code: def _generate_examples(self, files):
      with tf.Graph().as_default():
          ds = tf.data.TFRecordDataset(
              sorted(os.fspath(f) for f in files)
          )
          ds = ds.map(
              self._parse_single_video,
              num_parallel_calls=tf.data.experimental.AUTOTUNE,
          )
          iterator = tf.compat.v1.data.make_one_shot_iterator(
              ds
          ).get_next()
          with tf.compat.v1.Session() as sess:
              sess.run(tf.compat.v1.global_variables_initializer())
              try:
                  i = 0
                  while True:
                      video = sess.run(iterator)
                      yield i, {"rgb_screen": video}
                      i += 1
  
              except tf.errors.OutOfRangeError:
                  # End of file.
                  return
  
file_path: datasets/tensorflow_datasets/datasets/starcraft_video/starcraft_video_dataset_builder.py
imports: from __future__ import annotations
  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 Builder obj's underlying member method code with example usage: obj._generate_examples(files) without return types