code: def visit_if(self: Parser, node: doc.If) -> None:
      """The if visiting method for tir.
  
      Parameters
      ----------
      self : Parser
          The visiting parser.
  
      node : doc.If
          The doc AST if node.
      """
      with self.var_table.with_frame():
          with T.If(self.eval_expr(node.test)):
              with T.Then():
                  with self.var_table.with_frame():
                      self.visit_body(node.body)
              if node.orelse:
                  with T.Else():
                      with self.var_table.with_frame():
                          self.visit_body(node.orelse)
  
imports: import contextlib
  from functools import partial
  from typing import Any
  import tvm
  from tvm.ir import GlobalVar, PrimType
  from tvm.tir import Buffer, IterVar, PrimExpr, Var
  from ...ir_builder import ir
  from ...ir_builder import tir
  from ...ir_builder.base import IRBuilder
  from ...ir_builder.base import IRBuilderFrame
  from .._core import Parser, dispatch, doc
label_desc: Use image node_id 14 for calling a global function with example usage: visit_if(node) without return types