class_docstr: Eurosat remote sensing benchmarking dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path, selection):
      """Yields examples."""
      for filename in tf.io.gfile.glob(os.path.join(path, "*", "*")):
          label = os.path.split(filename)[-1].split("_")[0]
          if selection == "rgb":
              record = {
                  "image": filename,
                  "label": label,
                  "filename": os.path.basename(filename),
              }
          else:
              record = {
                  "sentinel2": _extract_channels(filename),
                  "label": label,
                  "filename": os.path.basename(filename),
              }
          yield f"{label}_{os.path.basename(filename)}", record
  
file_path: datasets/tensorflow_datasets/image_classification/eurosat.py
imports: import io
  import os
  import numpy
  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 Eurosat obj's underlying member method code with example usage: obj._generate_examples(path, selection) without return types