class_docstr: Caching wrapper for the tokenize module.
  
  This is pretty tied to Python's syntax.
docstr: Return the next token and updates the index.
docstr_tok: ["Return","the","next","token","and","updates","the","index","."]
code: def getnext(self) -> tokenize.TokenInfo:
      """Return the next token and updates the index."""
      cached = not self._index == len(self._tokens)
      tok = self.peek()
      self._index += 1
      if self._verbose:
          self.report(cached, False)
      return tok
  
file_path: cpython/Tools/peg_generator/pegen/tokenizer.py
imports: import token
  import tokenize
  from typing import Dict, Iterator, List
label_desc: Use image node_id 2 for calling the Tokenizer obj's underlying member method code with example usage: obj.getnext() and returns: tok