class_docstr: The parser for Python grammar files.
class_docstr_tok: ["The","parser","for","Python","grammar","files","."]
code: def _expect(self, type_, value=None):
      if self.type != type_:
          self._raise_error(
              "expected %s, got %s [%s]", type_, self.type, self.value
          )
      if value is not None and self.value != value:
          self._raise_error("expected %s, got %s", value, self.value)
      value = self.value
      self._gettoken()
      return value
  
imports: from parso.python.tokenize import tokenize
  from parso.utils import parse_version_string
  from parso.python.token import PythonTokenTypes
label_desc: Use image node_id 7 for calling the GrammarParser obj's underlying member method code with example usage: obj._expect(type_, value) and returns: value