code: def test_spec_processor(app, client):
      @app.spec_processor
      def edit_spec(spec):
          assert spec["openapi"] == "3.0.3"
          spec["openapi"] = "3.0.2"
          assert app.title == "APIFlask"
          assert spec["info"]["title"] == "APIFlask"
          spec["info"]["title"] = "Foo"
          return spec
  
      rv = client.get("/openapi.json")
      assert rv.status_code == 200
      validate_spec(rv.json)
      assert rv.json["openapi"] == "3.0.2"
      assert rv.json["info"]["title"] == "Foo"
  
imports: import json
  import pytest
  from flask import request
  from openapi_spec_validator import validate_spec
  from .schemas import Bar
  from .schemas import Baz
  from .schemas import Foo
  from apiflask import APIBlueprint
  from apiflask import Schema
  from apiflask.commands import spec_command
  from apiflask.fields import Integer
label_desc: Use image node_id 2 for calling a global function with example usage: test_spec_processor(app, client) and returns: spec