code: def _visit_class_def(self: Parser, node: doc.ClassDef) -> None:
      """The class definition visiting method for ir module.
  
      Parameters
      ----------
      self : Parser
          The visiting parser.
  
      node : doc.ClassDef
          The doc AST class definition node.
      """
  
      with self.var_table.with_frame():
          with I.ir_module():
              # Step 0. Add the class name to the var table
              fake_module = ModuleWithGlobalVars()
              self.var_table.add(node.name, fake_module)
  
              # Step 1. Visit non-function stmts, including but not limited to
              # 1. `I.module_attrs`
              # 2. `I.module_global_infos`
              with self.with_dispatch_token("ir"):
                  for stmt in node.body:
                      if not isinstance(stmt, doc.FunctionDef):
                          self.visit(stmt)
  
              # Step 2. Visit function stmts to declare the global vars
              for stmt in node.body:
                  if isinstance(stmt, doc.FunctionDef):
                      global_var = self.visit_tvm_declare_function(stmt)
                      fake_module.__setattr__(stmt.name, global_var)
  
              # Step 3. Visit and parse the functions
              with self.with_dispatch_token("ir"):
                  for stmt in node.body:
                      if isinstance(stmt, doc.FunctionDef):
                          self.visit(stmt)
  
file_path: tvm/python/tvm/script/parser/ir/parser.py
imports: from ...ir_builder import ir
  from .._core import Parser, dispatch, doc
label_desc: Use image node_id 1 for calling a global function with example usage: _visit_class_def(node) without return types