class_docstr: Test how very generic handlers are dispatched to.
class_docstr_tok: ["Test","how","very","generic","handlers","are","dispatched","to","."]
code: def report_error(self, e):
      original = getattr(e, "original_exception", None)
  
      if original is not None:
          return f"wrapped {type(original).__name__}"
  
      return f"direct {type(e).__name__}"
  
file_path: flask/tests/test_user_error_handler.py
imports: import pytest
  from werkzeug.exceptions import Forbidden
  from werkzeug.exceptions import HTTPException
  from werkzeug.exceptions import InternalServerError
  from werkzeug.exceptions import NotFound
  import flask
label_desc: Use image node_id 2 for calling the TestGenericHandlers obj's underlying member method code with example usage: obj.report_error(e) and returns: str, type, str, type