class_docstr: Flowers dataset.
docstr: Generate flower images and labels given the image directory path.
  
  Args:
    images_dir_path: path to the directory where the images are stored.
  
  Yields:
    The image path and its corresponding label.
docstr_tok: ["Generate","flower","images","and","labels","given","the","image","directory","path",".","Args",":","images_dir_path",":","path","to","the","directory","where","the","images","are","stored",".","Yields",":","The","image","path","and","its","corresponding","label","."]
code: def _generate_examples(self, images_dir_path):
      """Generate flower images and labels given the image directory path.
  
      Args:
        images_dir_path: path to the directory where the images are stored.
  
      Yields:
        The image path and its corresponding label.
      """
      for fname, fobj in images_dir_path:
          if fname.endswith(".jpg"):
              image_dir, image_file = os.path.split(fname)
              d = os.path.basename(image_dir)
              record = {"image": fobj, "label": d.lower()}
              yield "%s/%s" % (d, image_file), record
  
imports: import os
  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(images_dir_path) without return types