class_docstr: Horses or Humans dataset.
docstr: Generate horses or humans images and labels given the directory path.
  
  Args:
    archive: object that iterates over the zip.
  
  Yields:
    The image path and its corresponding label.
docstr_tok: ["Generate","horses","or","humans","images","and","labels","given","the","directory","path",".","Args",":","archive",":","object","that","iterates","over","the","zip",".","Yields",":","The","image","path","and","its","corresponding","label","."]
code: def _generate_examples(self, archive):
      """Generate horses or humans images and labels given the directory path.
  
      Args:
        archive: object that iterates over the zip.
  
      Yields:
        The image path and its corresponding label.
      """
  
      for fname, fobj in archive:
          res = _NAME_RE.match(fname)
          if not res:  # if anything other than .png; skip
              continue
          label = res.group(1).lower()
          record = {
              "image": fobj,
              "label": label,
          }
          yield fname, record
  
imports: import re
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the HorsesOrHumans obj's underlying member method code with example usage: obj._generate_examples(archive) without return types