class_docstr: Malaria Cell Image Dataset Class.
docstr: Generate images and labels for splits.
docstr_tok: ["Generate","images","and","labels","for","splits","."]
code: def _generate_examples(self, data_dir_path):
      """Generate images and labels for splits."""
      folder_names = ["Parasitized", "Uninfected"]
  
      for folder in folder_names:
          folder_path = os.path.join(data_dir_path, folder)
          for file_name in tf.io.gfile.listdir(folder_path):
              if fnmatch.fnmatch(file_name, "*.png"):
                  image = os.path.join(folder_path, file_name)
                  label = folder.lower()
                  image_id = "%s_%s" % (folder, file_name)
                  yield image_id, {"image": image, "label": label}
  
file_path: datasets/tensorflow_datasets/datasets/malaria/malaria_dataset_builder.py
imports: import fnmatch
  import os
  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(data_dir_path) without return types