code: def test_ir_transform():
      ib = tvm.tir.ir_builder.create()
      n = te.var("n")
      with ib.for_range(0, n, name="i") as i:
          with ib.for_range(0, 10, name="j") as j:
              x = tvm.tir.call_extern("int32", "TestA", i * 3 + j * 1)
              ib.emit(tvm.tir.call_extern("int32", "TestB", x))
              ib.emit(tvm.tir.call_extern("int32", "TestC", x))
      body = ib.get()
      builtin_call_extern = tvm.ir.Op.get("tir.call_extern")
  
      def preorder(op):
          if (
              op.op.same_as(builtin_call_extern)
              and op.args[0].value == "TestC"
          ):
              return tvm.tir.const(42, "int32")
          return None
  
      def postorder(op):
          assert isinstance(op, tvm.tir.Call)
          if (
              op.op.same_as(builtin_call_extern)
              and op.args[0].value == "TestA"
          ):
              return tvm.tir.call_extern(
                  "int32", "TestB", op.args[1] + 1
              )
          return op
  
      body = tvm.tir.stmt_functor.ir_transform(
          body, preorder, postorder, ["tir.Call"]
      )
      stmt_list = tvm.tir.stmt_list(body.body.body)
      assert stmt_list[0].value.args[1].args[0].value == "TestB"
      assert stmt_list[1].value.value == 42
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_ir_transform() and returns: None, op, tvm, tvm