code: def test_context_processing(app, client):
      answer_bp = flask.Blueprint("answer_bp", __name__)
  
      def template_string():
          return flask.render_template_string(
              "{% if notanswer %}{{ notanswer }} is not the answer. {% endif %}"
              "{% if answer %}{{ answer }} is the answer.{% endif %}"
          )
  
      # App global context processor
      @answer_bp.app_context_processor
      def not_answer_context_processor():
          return {"notanswer": 43}
  
      # Blueprint local context processor
      @answer_bp.context_processor
      def answer_context_processor():
          return {"answer": 42}
  
      # Setup endpoints for testing
      @answer_bp.route("/bp")
      def bp_page():
          return template_string()
  
      @app.route("/")
      def app_page():
          return template_string()
  
      # Register the blueprint
      app.register_blueprint(answer_bp)
  
      app_page_bytes = client.get("/").data
      answer_page_bytes = client.get("/bp").data
  
      assert b"43" in app_page_bytes
      assert b"42" not in app_page_bytes
  
      assert b"42" in answer_page_bytes
      assert b"43" in answer_page_bytes
  
imports: import pytest
  from jinja2 import TemplateNotFound
  from werkzeug.http import parse_cache_control_header
  import flask
label_desc: Use image node_id 35 for calling a global function with example usage: test_context_processing(app, client) and returns: flask, dict, dict, template_string, template_string