code: def test_sample_count(self):
      directory = self._prepare_directory(num_classes=4, count=15)
      dataset = text_dataset_utils.text_dataset_from_directory(
          directory, batch_size=8, label_mode=None
      )
      sample_count = 0
      for batch in dataset:
          sample_count += batch.shape[0]
      self.assertEqual(sample_count, 15)
  
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 4 for calling the TextDatasetFromDirectoryTest obj's underlying member method code with example usage: obj.test_sample_count() without return types