code: def test_rank_zero():
      m = te.size_var("m")
      A = te.placeholder((m,), name="A")
      scale = te.placeholder((), name="s")
      k = te.reduce_axis((0, m), name="k")
      T = te.compute((), lambda: te.sum(A[k] * scale(), axis=k))
      print(T)
      print(T.op.body)
      assert tuple(T.shape) == ()
  
imports: import numpy
  import tvm
  import tvm.testing
  from tvm import te
  from tvm.topi.nn.pooling import pool2d
label_desc: Use image node_id 2 for calling a global function with example usage: test_rank_zero() without return types