code: def test_spec_processor_pass_object(app, client):
      app.config["SPEC_PROCESSOR_PASS_OBJECT"] = True
  
      class NotUsedSchema(Schema):
          id = Integer()
  
      @app.spec_processor
      def process_spec(spec):
          spec.title = "Foo"
          spec.components.schema("NotUsed", schema=NotUsedSchema)
          return spec
  
      rv = client.get("/openapi.json")
      assert rv.status_code == 200
      validate_spec(rv.json)
      assert rv.json["info"]["title"] == "Foo"
      assert "NotUsed" in rv.json["components"]["schemas"]
      assert (
          "id"
          in rv.json["components"]["schemas"]["NotUsed"]["properties"]
      )
  
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 3 for calling a global function with example usage: test_spec_processor_pass_object(app, client) and returns: spec