code: def test_cropping_2d_error_on_excessive_cropping(
      self, cropping, input_shape, data_format
  ):
      inputs = np.random.rand(*input_shape)
  
      with self.assertRaisesRegex(
          ValueError,
          "Values in `cropping` argument should be smaller than the "
          "corresponding spatial dimension of the input.",
      ):
          layer = layers.Cropping2D(
              cropping=cropping, data_format=data_format
          )
          _ = layer(inputs)
  
file_path: keras/keras/layers/reshaping/cropping2d_test.py
imports: import numpy
  import pytest
  from absl.testing import parameterized
  from keras import backend
  from keras import layers
  from keras import ops
  from keras import testing
label_desc: Use image node_id 5 for calling the Cropping2DTest obj's underlying member method code with example usage: obj.test_cropping_2d_error_on_excessive_cropping(cropping, input_shape, data_format) without return types