code: def test_stmt():
      x = te.var("x")
      y = te.var("y")
      n = 128
      A = te.placeholder((n, n), name="A")
      B = te.placeholder((n, n), name="B")
      ii = te.var("i")
      jj = te.var("j")
  
      Ab = tvm.tir.decl_buffer((n,), name="A")
      n = te.var("n")
  
      def func2():
          ib = tvm.tir.ir_builder.create()
          A = ib.buffer_ptr(Ab)
          with ib.for_range(0, n, name="i") as i:
              A[i] = A[i] + 1
              with ib.for_range(0, 10, name="j") as j:
                  A[j] = A[j] + 2
                  A[j] = A[j] + 2
          return ib.get()
  
      assert consistent_equal(func2(), func2())
  
imports: import tvm
  import numpy
  import pytest
  from tvm import te
  from tvm.runtime import ObjectPath
  from tvm.script import tir, ir
label_desc: Use image node_id 11 for calling a global function with example usage: test_stmt() and returns: ib