code: def test_cropping_1d(self):
      inputs = np.random.rand(3, 5, 7)
  
      # Cropping with different values on the left and the right.
      self.run_layer_test(
          layers.Cropping1D,
          init_kwargs={"cropping": (1, 2)},
          input_data=inputs,
          expected_output=ops.convert_to_tensor(inputs[:, 1:3, :]),
      )
      # Same cropping on the left and the right.
      self.run_layer_test(
          layers.Cropping1D,
          init_kwargs={"cropping": (1, 1)},
          input_data=inputs,
          expected_output=ops.convert_to_tensor(inputs[:, 1:4, :]),
      )
      # Same cropping on the left and the right provided as an int.
      self.run_layer_test(
          layers.Cropping1D,
          init_kwargs={"cropping": 1},
          input_data=inputs,
          expected_output=ops.convert_to_tensor(inputs[:, 1:4, :]),
      )
      # Cropping on the right only.
      self.run_layer_test(
          layers.Cropping1D,
          init_kwargs={"cropping": (0, 1)},
          input_data=inputs,
          expected_output=ops.convert_to_tensor(inputs[:, 0:4, :]),
      )
      # Cropping on the left only.
      self.run_layer_test(
          layers.Cropping1D,
          init_kwargs={"cropping": (1, 0)},
          input_data=inputs,
          expected_output=ops.convert_to_tensor(inputs[:, 1:5, :]),
      )
  
file_path: keras/keras/layers/reshaping/cropping1d_test.py
imports: import numpy
  import pytest
  from keras import layers
  from keras import ops
  from keras import testing
label_desc: Use image node_id 1 for calling the Cropping1DTest obj's underlying member method code with example usage: obj.test_cropping_1d() without return types