code: def visit_assert(self: Parser, node: doc.Assert) -> None:
      """The assert visiting method for tir.
  
      Parameters
      ----------
      self : Parser
          The visiting parser.
  
      node : doc.Assert
          The doc AST assert node.
      """
      cond = self.eval_expr(node.test)
      msg = self.eval_expr(node.msg)
      frame = T.Assert(cond, msg)
      frame.add_callback(partial(frame.__exit__, None, None, None))
      frame.__enter__()
  
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 15 for calling a global function with example usage: visit_assert(node) without return types