code: def test_error_handler_blueprint(app):
      bp = flask.Blueprint("bp", __name__)
  
      @bp.errorhandler(500)
      def bp_exception_handler(e):
          return "bp-error"
  
      @bp.route("/error")
      def bp_test():
          raise InternalServerError()
  
      @app.errorhandler(500)
      def app_exception_handler(e):
          return "app-error"
  
      @app.route("/error")
      def app_test():
          raise InternalServerError()
  
      app.register_blueprint(bp, url_prefix="/bp")
  
      c = app.test_client()
  
      assert c.get("/error").data == b"app-error"
      assert c.get("/bp/error").data == b"bp-error"
  
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 4 for calling a global function with example usage: test_error_handler_blueprint(app) and returns: str, str