code: def ir_module(mod: Type) -> IRModule:
      """The parsing method for ir module, by using `@ir_module` as decorator.
  
      Parameters
      ----------
      mod : Type
          The class to be parsed as ir module.
  
      Returns
      -------
      ir_module : IRModule
          The parsed ir module.
      """
      if not inspect.isclass(mod):
          raise TypeError(f"Expect a class, but got: {mod}")
  
      m = parse(mod, utils.inspect_class_capture(mod))
      setattr(m, "__name__", mod.__name__)
      return m
  
imports: import inspect
  from typing import Type
  from tvm.ir import IRModule
  from .._core import parse, utils
label_desc: Use image node_id 1 for calling a global function with example usage: ir_module(mod) and returns: m