code: def test_list_compatibility(self):
      if backend.config.image_data_format() == "channels_last":
          images = [
              np.random.rand(10, 10, 3),
              np.random.rand(10, 10, 3),
          ]
          output_shape = (2, 6, 5, 3)
      else:
          images = [
              np.random.rand(3, 10, 10),
              np.random.rand(3, 10, 10),
          ]
          output_shape = (2, 3, 6, 5)
      output = layers.CenterCrop(height=6, width=5)(images)
      ref_output = self.np_center_crop(
          images, 6, 5, data_format=backend.config.image_data_format()
      )
      self.assertEqual(tuple(output.shape), output_shape)
      self.assertAllClose(ref_output, output)
  
file_path: keras/keras/layers/preprocessing/center_crop_test.py
imports: import numpy
  import pytest
  from absl.testing import parameterized
  from tensorflow import data
  from keras import backend
  from keras import layers
  from keras import testing
label_desc: Use image node_id 6 for calling the CenterCropTest obj's underlying member method code with example usage: obj.test_list_compatibility() without return types