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","."]
code: def visit_tvm_declare_function(
      self, node: doc.FunctionDef
  ) -> GlobalVar:
      token = self.get_dispatch_token(node)
      with self.with_dispatch_token(token):
          return _dispatch(self, "tvm_declare_function")(self, node)
  
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 13 for calling the Parser obj's underlying member method code with example usage: obj.visit_tvm_declare_function(node) and returns: _dispatch