my dataset is an image dataset, with two classes cat and dog,If I write :
train = tf.data.Dataset.from_tensor_slices()
How I can extract labels k