code: def test_tensor_scan():
      m = te.size_var("m")
      n = te.size_var("n")
      x = te.placeholder((m, n))
      s = te.placeholder((m, n))
      res = tvm.te.scan(
          te.compute((1, n), lambda _, i: x[0, i]),
          te.compute((m, n), lambda t, i: s[t - 1, i] + x[t, i]),
          s,
      )
      assert tuple(res.shape) == (m, n)
  
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 12 for calling a global function with example usage: test_tensor_scan() without return types