class_docstr: The TVMScript parser
  
  Parameters
  ----------
  diag : Diagnostics
      The diagnostics for error reporting.
  
  dispatch_tokens : List[str]
      The list of dispatching tokens to dispatching parsing method
      of different IRs and different doc AST structure.
  
  var_table : VarTable
      The variable table for parsing.
class_docstr_tok: ["The","TVMScript","parser","Parameters","--","--","--","--","--","diag",":","Diagnostics","The","diagnostics","for","error","reporting",".","dispatch_tokens",":","List","[","str","]","The","list","of","dispatching","tokens","to","dispatching","parsing","method","of","different","IRs","and","different","doc","AST","structure",".","var_table",":","VarTable","The","variable","table","for","parsing","."]
docstr: The general visiting method.
  
  Parameters
  ----------
  node : doc.AST
      The doc AST node.
  
  Returns
  -------
  res : Any
      The visiting result.
code: def visit(self, node: doc.AST) -> None:
      """The general visiting method.
  
      Parameters
      ----------
      node : doc.AST
          The doc AST node.
  
      Returns
      -------
      res : Any
          The visiting result.
      """
      if isinstance(node, (list, tuple)):
          for item in node:
              self.visit(item)
          return
      if not isinstance(node, doc.AST):
          return
      name = node.__class__.__name__.split(".")[-1]
      if name in DEFAULT_VISIT:
          func = self.generic_visit
      else:
          func = getattr(self, "visit_" + name, None)
      if func is None:
          raise NotImplementedError(
              f"Visitor of AST node is not implemented: {name}"
          )
      try:
          func(node)
      except DiagnosticError:
          raise
      except (
          Exception
      ) as e:  # pylint: disable=broad-except,invalid-name
          self.report_error(node, str(e))
          raise
  
imports: import abc
  import inspect
  from collections import defaultdict
  from contextlib import contextmanager
  from typing import Any, Callable, Dict, List, Optional, Set, Union
  import numpy
  from tvm._ffi.base import TVMError
  from tvm.error import DiagnosticError
  from tvm.ir import GlobalVar
  from .None import dispatch, doc
  from .diagnostics import Diagnostics, Source
  from .evaluator import eval_assign, eval_expr
label_desc: Use image node_id 9 for calling the Parser obj's underlying member method code with example usage: obj.visit(node) without return types