code: def test_builder_to_backend_stress(
      self, use_cpu_only, backend, C, H, W
  ):
      input_shape = (1, C, H, W)
      x = np.random.random(input_shape)
  
      crop_h = [np.random.randint(H)]
      crop_h.append(np.random.randint(H - crop_h[0]))
      crop_w = [np.random.randint(W)]
      crop_w.append(np.random.randint(W - crop_w[0]))
  
      input_placeholder_dict = {"x": mb.placeholder(shape=input_shape)}
      input_value_dict = {"x": x}
  
      def build(x):
          return mb.crop(x=x, crop_height=crop_h, crop_width=crop_w)
  
      expected_output_type = (
          1,
          C,
          H - crop_h[0] - crop_h[1],
          W - crop_w[0] - crop_w[1],
          types.fp32,
      )
      expected_output = x[
          :, :, crop_h[0] : H - crop_h[1], crop_w[0] : W - crop_w[1]
      ]
  
      run_compare_builder(
          build,
          input_placeholder_dict,
          input_value_dict,
          expected_output_type,
          expected_output,
          use_cpu_only=use_cpu_only,
          frontend_only=False,
          backend=backend,
      )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/mil/ops/tests/test_image_resizing.py
imports: from coremltools.converters.mil import testing_reqs
  from coremltools.converters.mil.mil import get_new_symbol
  from coremltools.converters.mil.testing_reqs import *
  from .testing_utils import run_compare_builder
label_desc: Use image node_id 2 for calling the TestCrop obj's underlying member method code with example usage: obj.test_builder_to_backend_stress(use_cpu_only, backend, C, H, W) and returns: mb