code: def test_builder_to_backend_smoke(
      self, use_cpu_only=True, backend="nn_proto"
  ):
      x = np.array([0, 1], dtype=np.float32).reshape(1, 1, 2)
      input_placeholder_dict = {"x": mb.placeholder(shape=x.shape)}
      input_value_dict = {"x": x}
  
      def build_mode_0(x):
          return mb.resize_bilinear(
              x=x,
              target_size_height=1,
              target_size_width=5,
              sampling_mode="STRICT_ALIGN_CORNERS",
          )
  
      expected_output_type = (1, 1, 5, types.fp32)
      expected_output = np.array(
          [0, 0.25, 0.5, 0.75, 1], dtype=np.float32
      ).reshape(1, 1, 5)
  
      run_compare_builder(
          build_mode_0,
          input_placeholder_dict,
          input_value_dict,
          expected_output_type,
          expected_output,
          use_cpu_only=use_cpu_only,
          frontend_only=False,
          backend=backend,
      )
  
      def build_mode_2(x):
          return mb.resize_bilinear(
              x=x,
              target_size_height=1,
              target_size_width=5,
              sampling_mode="DEFAULT",
          )
  
      expected_output = np.array(
          [0, 0.4, 0.8, 1, 1], dtype=np.float32
      ).reshape(1, 1, 5)
  
      run_compare_builder(
          build_mode_2,
          input_placeholder_dict,
          input_value_dict,
          expected_output_type,
          expected_output,
          use_cpu_only=use_cpu_only,
          frontend_only=False,
          backend=backend,
      )
  
      def build_mode_3(x):
          return mb.resize_bilinear(
              x=x,
              target_size_height=1,
              target_size_width=5,
              sampling_mode="OFFSET_CORNERS",
          )
  
      expected_output = np.array(
          [0.1, 0.3, 0.5, 0.7, 0.9], dtype=np.float32
      ).reshape(1, 1, 5)
  
      run_compare_builder(
          build_mode_3,
          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 1 for calling the TestResizeBilinear obj's underlying member method code with example usage: obj.test_builder_to_backend_smoke(use_cpu_only, backend) and returns: mb, mb, mb