code: def add_token(
      self, tok_type: int, tok_val: str, raw: bool = False
  ) -> None:
      func: Callable[..., Any]
      if raw:
          func = self.parser._addtoken
      else:
          func = self.parser.addtoken
  
      for ilabel in self.ilabels:
          with self.switch_to(ilabel):
              args = [tok_type, tok_val, self.context]
              if raw:
                  args.insert(0, ilabel)
              func(*args)
  
imports: from contextlib import contextmanager
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterator, List, Optional, Set, Tuple, Union, cast
  from blib2to3.pgen2.grammar import Grammar
  from blib2to3.pytree import NL, Context, Leaf, Node, RawNode, convert
  from .None import grammar, token, tokenize
label_desc: Use image node_id 5 for calling the Recorder obj's underlying member method code with example usage: obj.add_token(tok_type, tok_val, raw) without return types