class_docstr: Parser engine.
  
  A Parser instance contains state pertaining to the current token
  sequence, and should not be used concurrently by different threads
  to parse separate token sequences.
  
  See python/tokenize.py for how to get input tokens by a string.
  
  When a syntax error occurs, error_recovery() is called.
class_docstr_tok: ["Parser","engine",".","A","Parser","instance","contains","state","pertaining","to","the","current","token","sequence",",","and","should","not","be","used","concurrently","by","different","threads","to","parse","separate","token","sequences",".","See","python\/tokenize.py","for","how","to","get","input","tokens","by","a","string",".","When","a","syntax","error","occurs",",","error_recovery","(",")","is","called","."]
code: def error_recovery(self, token):
      if self._error_recovery:
          raise NotImplementedError("Error Recovery is not implemented")
      else:
          type_, value, start_pos, prefix = token
          error_leaf = tree.ErrorLeaf(type_, value, start_pos, prefix)
          raise ParserSyntaxError(
              "SyntaxError: invalid syntax", error_leaf
          )
  
imports: from typing import Dict, Type
  from parso import tree
  from parso.pgen2.generator import ReservedString
label_desc: Use image node_id 3 for calling the BaseParser obj's underlying member method code with example usage: obj.error_recovery(token) without return types