code: def test_resize1d_infer_type():
      n, c, w = te.size_var("n"), te.size_var("c"), te.size_var("w")
      x = relay.var("x", relay.TensorType((n, c, w), "int8"))
      tw = te.var("tw")
      z = relay.image.resize1d(x, (tw,))
      zz = run_infer_type(z)
      assert zz.checked_type == relay.TensorType((n, c, tw), "int8")
  
      x = relay.var("x", relay.TensorType((n, c, w), "int8"))
      z = relay.image.resize1d(
          x, (200,), None, "NCW", "linear", "align_corners"
      )
      assert "size=" in z.astext()
      zz = run_infer_type(z)
      assert zz.checked_type == relay.TensorType((n, c, 200), "int8")
  
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 a global function with example usage: test_resize1d_infer_type() without return types