code: def te_scan():
      m = te.var("m")
      n = te.var("n")
      X = te.placeholder((m, n), name="X")
      s_state = te.placeholder((m, n))
      s_init = te.compute((1, n), lambda _, i: X[0, i])
      s_update = te.compute(
          (m, n), lambda t, i: s_state[t - 1, i] + X[t, i]
      )
      s_scan = tvm.te.scan(s_init, s_update, s_state, inputs=[X])
      return [X, s_scan]
  
imports: import numpy
  import tvm
  import tvm.testing
  from tvm import te, tir, topi, relay
  from tvm.script import tir
  import pytest
label_desc: Use image node_id 24 for calling a global function with example usage: te_scan() and returns: list