code: def test_bool():
      @te.hybrid.script
      def foo(a):
          b = output_tensor(a.shape, a.dtype)
          b[0] = 1.2
          for i in range(1, a.shape[0] - 1):
              if (
                  a[i] * a[i - 1] < a[i]
                  or a[i] * a[i - 1] < a[i - 1]
                  or i * a[i] == a[i]
              ):
                  b[i] = a[i]
              else:
                  b[i] = 0.0
          return b
  
      a = te.placeholder((10,), name="a")
      func, ins, outs = run_and_check(foo, [a])
      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 16 for calling a global function with example usage: test_bool() and returns: b