class_docstr: GTZAN Dataset.
docstr: Yields examples.
  
  Args:
     path: Path of the downloaded and extracted directory
  
  Yields:
     Next examples
docstr_tok: ["Yields","examples",".","Args",":","path",":","Path","of","the","downloaded","and","extracted","directory","Yields",":","Next","examples"]
code: def _generate_examples(self, path):
      """Yields examples.
  
      Args:
         path: Path of the downloaded and extracted directory
  
      Yields:
         Next examples
      """
      for root, _, file_name in tf.io.gfile.walk(path):
          for fname in file_name:
              if fname.endswith(".wav"):  # select only .wav files
                  # Each .wav file has name in the format of <genre>.<number>.wav
                  label = fname.split(".")[0]
                  key = fname
                  example = {
                      "audio": os.path.join(root, fname),
                      "label": label,
                      "audio/filename": fname,
                  }
                  yield key, example
  
imports: 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 GTZAN obj's underlying member method code with example usage: obj._generate_examples(path) without return types