class_docstr: Binary alphadigits dataset.
docstr: Generate Splits for training data.
docstr_tok: ["Generate","Splits","for","training","data","."]
code: def _generate_examples(self, data_dir_path):
      """Generate Splits for training data."""
  
      with tf.io.gfile.GFile(data_dir_path, "rb") as f:
          mat = tfds.core.lazy_imports.scipy.io.loadmat(f)
      for i in range(len(mat["dat"])):
          label = mat["classlabels"][0][i].item()
          for j in range(len(mat["dat"][i])):
              image = mat["dat"][i][j].reshape(20, 16, 1)
              yield "%d_%d" % (i, j), {"label": label, "image": image}
  
imports: import urllib
  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(data_dir_path) without return types