code: def test_text_dataset_from_directory_manual_labels(self):
      directory = self._prepare_directory(num_classes=2, count=2)
      dataset = text_dataset_utils.text_dataset_from_directory(
          directory, batch_size=8, labels=[0, 1], shuffle=False
      )
      batch = next(iter(dataset))
      self.assertLen(batch, 2)
      self.assertAllClose(batch[1], [0, 1])
  
file_path: keras/keras/utils/text_dataset_utils_test.py
imports: import os
  import random
  import string
  from keras import testing
  from keras.utils import text_dataset_utils
label_desc: Use image node_id 7 for calling the TextDatasetFromDirectoryTest obj's underlying member method code with example usage: obj.test_text_dataset_from_directory_manual_labels() without return types