code: def test_static_shape_in_graph(self):
      directory = self._prepare_directory(num_classes=2)
      dataset = image_dataset_utils.image_dataset_from_directory(
          directory, batch_size=8, image_size=(18, 18), label_mode="int"
      )
      test_case = self
      if backend.config.image_data_format() == "channels_last":
          output_shape = [None, 18, 18, 3]
      else:
          output_shape = [None, 3, 18, 18]
  
      @tf.function
      def symbolic_fn(ds):
          for x, _ in ds.take(1):
              test_case.assertListEqual(x.shape.as_list(), output_shape)
  
      symbolic_fn(dataset)
  
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 5 for calling the ImageDatasetFromDirectoryTest obj's underlying member method code with example usage: obj.test_static_shape_in_graph() without return types