code: def test_ir_builder_tir_if_then_else():
      with IRBuilder() as ib:
          with T.If(T.int32() < 12):
              with T.Then():
                  T.evaluate(T.int32(0))
              with T.Else():
                  T.evaluate(T.int32(1))
  
      # the if_then_else generated by IRBuilder
      ir_actual = ib.get()
  
      # the expected if_then_else
      ir_expected = tir.IfThenElse(
          tir.Var("c", "int32") < 12,
          tir.Evaluate(tir.IntImm("int32", 0)),
          tir.Evaluate(tir.IntImm("int32", 1)),
      )
  
      # Check if the generated ir is expected
      assert_structural_equal(
          ir_actual, ir_expected, map_free_vars=True
      )
  
imports: import numpy
  import pytest
  import tvm
  import tvm.testing
  from tvm import tir
  from tvm.ir.base import assert_structural_equal
  from tvm.runtime import ndarray
  from tvm.script.ir_builder import IRBuilder
  from tvm.script.ir_builder import tir
label_desc: Use image node_id 15 for calling a global function with example usage: test_ir_builder_tir_if_then_else() without return types