code: def test_resize_linear_dynamic_shape(self, compute_unit, backend):
      def build_model(x, shape):
          return mb.resize(
              x=x,
              shape=shape,
              resized_dims=np.uint32(2),
              interpolation_mode="LINEAR",
              sampling_mode="DEFAULT",
          )
  
      x_val = np.array([0, 1], dtype=np.float32).reshape([1, 1, 1, 2])
      shape_val = np.array([3, 1, 5], dtype=np.int32)
      input_placeholder_dict = {
          "x": mb.placeholder(shape=x_val.shape, dtype=types.fp32),
          "shape": mb.placeholder(
              shape=shape_val.shape, dtype=types.int32
          ),
      }
      input_value_dict = {"x": x_val, "shape": shape_val}
      expected_output_types = [(1, 1, UNK_SYM, UNK_SYM, types.fp32)]
      expected_outputs = [
          np.array([[0, 0.4, 0.8, 1, 1]], dtype=np.float32).reshape(
              [1, 1, 1, 5]
          )
      ]
  
      run_compare_builder(
          build_model,
          input_placeholder_dict,
          input_value_dict,
          expected_output_types,
          expected_outputs,
          compute_unit=compute_unit,
          backend=backend,
      )
  
imports: import itertools
  import numpy
  import pytest
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.ops.tests.iOS15.test_image_resizing import TestResample
  from coremltools.converters.mil.mil.ops.tests.iOS17 import backends
  from coremltools.converters.mil.mil.ops.tests.testing_utils import UNK_SYM, run_compare_builder
  from coremltools.converters.mil.testing_reqs import compute_units
label_desc: Use image node_id 4 for calling the TestResize obj's underlying member method code with example usage: obj.test_resize_linear_dynamic_shape(compute_unit, backend) and returns: mb