code: def test_resize(
      self,
      target,
      dev,
      executor_kind,
      dshape,
      scale,
      interpolate_method,
      layout,
      coord_trans,
  ):
      target_kind = tvm.target.Target(target).kind.name
      if (
          target_kind == "vulkan"
          and dshape == (3, 4, 5)
          and scale == 5
          and interpolate_method == "nearest_neighbor"
          and coord_trans == "align_corners"
      ):
          pytest.xfail("Known failing case for these parameters")
  
      if layout == "NWC":
          size = (dshape[1] * scale,)
      else:
          size = (dshape[2] * scale,)
  
      x_data = np.random.uniform(size=dshape).astype("float32")
  
      ref_res = tvm.topi.testing.resize1d_python(
          x_data, (scale,), layout, interpolate_method, coord_trans
      )
      x = relay.var("x", relay.TensorType(dshape, "float32"))
      z = relay.image.resize1d(
          x,
          size,
          None,
          layout,
          interpolate_method,
          coordinate_transformation_mode=coord_trans,
      )
      assert "size=" in z.astext()
      zz = run_infer_type(z)
      assert zz.checked_type == relay.TensorType(
          ref_res.shape, "float32"
      )
      func = relay.Function([x], z)
      op_res = relay.create_executor(
          executor_kind, device=dev, target=target
      ).evaluate(func)(x_data)
      tvm.testing.assert_allclose(
          op_res.numpy(), ref_res, rtol=1e-3, atol=1e-4
      )
  
imports: import math
  import platform
  import sys
  import numpy
  import pytest
  import tvm
  import tvm.testing
  import tvm.topi.testing
  from tvm import relay, te
  from tvm.relay.testing import run_infer_type
label_desc: Use image node_id 1 for calling the TestResize1D obj's underlying member method code with example usage: obj.test_resize(target, dev, executor_kind, dshape, scale, interpolate_method, layout, coord_trans) without return types