class_docstr: AFLW2000-3D dataset.
code: def _generate_examples(self, image_dir_path):
      image_files = tf.io.gfile.glob(
          pattern=os.path.join(image_dir_path, "image0*.jpg")
      )
      label_files = [s.replace("jpg", "mat") for s in image_files]
  
      for image_file, label_file in zip(image_files, label_files):
          with tf.io.gfile.GFile(label_file, "rb") as f:
              mat = tfds.core.lazy_imports.scipy.io.loadmat(f)
          landmarks_68_3d_xyz = mat["pt3d_68"].T.astype(np.float32)
          landmarks_68_3d_xy_normalized = (
              landmarks_68_3d_xyz[..., 0:2] / 450.0
          )
          landmarks_68_3d_z = landmarks_68_3d_xyz[..., 2:]
          yield os.path.basename(image_file), {
              "image": image_file,
              "landmarks_68_3d_xy_normalized": landmarks_68_3d_xy_normalized,
              "landmarks_68_3d_z": landmarks_68_3d_z,
          }
  
file_path: datasets/tensorflow_datasets/datasets/aflw2k3d/aflw2k3d_dataset_builder.py
imports: import os
  import numpy
  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(image_dir_path) without return types