code: def test_sample_count(self):
      directory = self._prepare_directory(num_classes=4, count=15)
      dataset = image_dataset_utils.image_dataset_from_directory(
          directory, batch_size=8, image_size=(18, 18), label_mode=None
      )
      sample_count = 0
      for batch in dataset:
          sample_count += batch.shape[0]
      self.assertEqual(sample_count, 15)
  
imports: import os
  import numpy
  from keras import backend
  from keras import testing
  from keras.utils import image_dataset_utils
  from keras.utils import image_utils
  from keras.utils.module_utils import tensorflow
label_desc: Use image node_id 6 for calling the ImageDatasetFromDirectoryTest obj's underlying member method code with example usage: obj.test_sample_count() without return types