code: def test_center_crop_basics(self):
      self.run_layer_test(
          layers.CenterCrop,
          init_kwargs={
              "height": 6,
              "width": 6,
              "data_format": "channels_last",
          },
          input_shape=(2, 12, 12, 3),
          expected_output_shape=(2, 6, 6, 3),
          expected_num_trainable_weights=0,
          expected_num_non_trainable_weights=0,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=False,
      )
      self.run_layer_test(
          layers.CenterCrop,
          init_kwargs={
              "height": 7,
              "width": 7,
              "data_format": "channels_first",
          },
          input_shape=(2, 3, 13, 13),
          expected_output_shape=(2, 3, 7, 7),
          expected_num_trainable_weights=0,
          expected_num_non_trainable_weights=0,
          expected_num_seed_generators=0,
          expected_num_losses=0,
          supports_masking=False,
      )
  
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 2 for calling the CenterCropTest obj's underlying member method code with example usage: obj.test_center_crop_basics() without return types