class_docstr: DIV2K dataset: DIVerse 2K resolution high quality images.
docstr: Yields examples.
code: def _generate_examples(self, lr_path, hr_path):
      """Yields examples."""
      for root, _, files in tf.io.gfile.walk(lr_path):
          for file_path in files:
              # Select only png files.
              if file_path.endswith(".png"):
                  yield file_path, {
                      "lr": os.path.join(root, file_path),
                      # Extract the image id from the filename: "0001x2.png"
                      "hr": os.path.join(
                          hr_path, file_path[:4] + ".png"
                      ),
                  }
  
file_path: datasets/tensorflow_datasets/datasets/div2k/div2k_dataset_builder.py
imports: import os.path
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Builder obj's underlying member method code with example usage: obj._generate_examples(lr_path, hr_path) without return types