class_docstr: Describable Textures Dataset (DTD).
code: def _generate_examples(self, data_path, split_name):
      with tf.io.gfile.GFile(
          os.path.join(data_path, "dtd", "labels", split_name + ".txt"),
          "r",
      ) as split_file:
          for line in split_file:
              fname = line.strip()
              label = os.path.split(fname)[0]
              record = {
                  "file_name": fname,
                  "image": os.path.join(
                      data_path, "dtd", "images", fname
                  ),
                  "label": label,
              }
              yield fname, record
  
file_path: datasets/tensorflow_datasets/image_classification/dtd.py
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 Dtd obj's underlying member method code with example usage: obj._generate_examples(data_path, split_name) without return types