code: def test_upsample_nearest2d_with_scales(
      self, scales_h, scales_w, backend
  ):
      input_shape = (1, 3, 10, 10)
      model = ModuleWrapper(
          nn.functional.interpolate,
          {
              "scale_factor": (scales_h, scales_w),
              "mode": "nearest",
          },
      )
      run_compare_torch(input_shape, model, backend=backend)
  
imports: import sys
  from coremltools.converters.mil import testing_reqs
  from coremltools.converters.mil.testing_reqs import *
  from .testing_utils import *
label_desc: Use image node_id 4 for calling the TestUpsample obj's underlying member method code with example usage: obj.test_upsample_nearest2d_with_scales(scales_h, scales_w, backend) without return types