class_docstr: Keras test
class_docstr_tok: ["Keras","test"]
docstr: test_forward_crop
docstr_tok: ["test_forward_crop"]
code: def test_forward_crop(self, keras_mod):
      """test_forward_crop"""
      data = keras_mod.layers.Input(shape=(32, 32, 3))
      x = keras_mod.layers.Cropping2D(cropping=((1, 1), (1, 1)))(data)
      x = keras_mod.layers.Cropping2D(cropping=(1, 1))(x)
      x = keras_mod.layers.Cropping2D(cropping=1)(x)
      x = keras_mod.layers.Cropping2D(cropping=((0, 1), (1, 0)))(x)
      x = keras_mod.layers.Cropping2D(cropping=(1, 0))(x)
      x = keras_mod.layers.Cropping2D(cropping=0)(x)
      x = keras_mod.layers.Add()([x, x])
      keras_model = keras_mod.models.Model(data, x)
      verify_keras_frontend(keras_model, layout="NHWC")
      verify_keras_frontend(keras_model, layout="NHWC")
  
      data = keras_mod.layers.Input(shape=(32, 32, 3))
      x = keras_mod.layers.Cropping2D(cropping=(2, 1))(data)
      x = keras_mod.layers.Cropping2D(cropping=(1, 2))(x)
      keras_model = keras_mod.models.Model(data, x)
      verify_keras_frontend(keras_model, layout="NHWC")
      verify_keras_frontend(keras_model, layout="NCHW")
  
imports: from packaging import version
  import numpy
  from tensorflow import keras
  import keras
  import pytest
  import tvm
  from tvm import relay
  from tvm.contrib import graph_executor
  import tvm.testing
label_desc: Use image node_id 16 for calling the TestKeras obj's underlying member method code with example usage: obj.test_forward_crop(keras_mod) without return types