code: def test_dyn_upsampling_infer_type_const():
      n, c, h, w = (
          te.size_var("n"),
          te.size_var("c"),
          te.size_var("h"),
          te.size_var("w"),
      )
  
      data = relay.var("data", relay.TensorType((n, c, h, w), "int8"))
      scale_w = relay.Var("scale_w", relay.TensorType((), "float32"))
  
      z = relay.nn.upsampling(data, 2.0, scale_w)
      zz = run_infer_type(z)
      assert zz.checked_type == relay.TensorType(
          (n, c, relay.Any(), relay.Any()), "int8"
      )
  
file_path: tvm/tests/python/relay/dyn/test_dynamic_op_level2.py
imports: import numpy
  import tvm
  from tvm import relay
  from tvm import te
  from tvm.relay.testing import enabled_targets
  import random
  from test_dynamic_op_level3 import verify_func
  import tvm.topi.testing
  from tvm.relay.testing import run_infer_type
label_desc: Use image node_id 2 for calling a global function with example usage: test_dyn_upsampling_infer_type_const() without return types