code: def test_looptype():
      @script
      def looptype(a, b, c):
          d = output_tensor((16,), "int32")
          e = output_tensor((16,), "int32")
          f = output_tensor((16,), "int32")
          for i in parallel(16):
              d[i] = a[i]
          for j in vectorize(16):
              e[j] = b[j]
          for k in unroll(16):
              f[k] = c[k]
          return d, e, f
  
      a = te.placeholder((16,), name="a", dtype="int32")
      b = te.placeholder((16,), name="b", dtype="int32")
      c = te.placeholder((16,), name="c", dtype="int32")
      try:
          d, e, f = looptype(a, b, c)
          ir = d.op.body
      except:
          return
      iloop = ir[0]
      jloop = ir[1]
      kloop = ir[2]
      assert iloop.kind == tvm.tir.ForKind.PARALLEL
      assert jloop.kind == tvm.tir.ForKind.VECTORIZED
      assert kloop.kind == tvm.tir.ForKind.UNROLLED
  
      func, ins, outs = run_and_check(looptype, [a, b, c])
      run_and_check(func, ins, outs=outs)
  
imports: import tvm, inspect, sys, traceback, numpy, pytest, types, os
  from tvm import te
  from tvm.contrib import utils
  from tvm.te.hybrid import script
  from tvm.te.hybrid.runtime import HYBRID_GLOBALS
  import tvm.testing
label_desc: Use image node_id 5 for calling a global function with example usage: test_looptype() and returns: d,  e,  f