code: def test_spec_path_summary_auto_generation(app, client):
      @app.route("/users")
      @app.output(Foo)
      def get_users():
          pass
  
      @app.route("/users/<id>", methods=["PUT"])
      @app.output(Foo)
      def update_user(id):
          pass
  
      @app.route("/users/<id>", methods=["DELETE"])
      @app.output(Foo)
      def delete_user(id):
          """Summary from Docs
  
          Delete a user with specified ID.
          """
          pass
  
      rv = client.get("/openapi.json")
      assert rv.status_code == 200
      validate_spec(rv.json)
      assert rv.json["paths"]["/users"]["get"]["summary"] == "Get Users"
      assert (
          rv.json["paths"]["/users/{id}"]["put"]["summary"]
          == "Update User"
      )
      assert (
          rv.json["paths"]["/users/{id}"]["delete"]["summary"]
          == "Summary from Docs"
      )
      assert (
          rv.json["paths"]["/users/{id}"]["delete"]["description"]
          == "Delete a user with specified ID."
      )
  
file_path: apiflask/tests/test_openapi_paths.py
imports: from openapi_spec_validator import validate_spec
  from .schemas import Foo
  from .schemas import Header
  from .schemas import Pagination
  from .schemas import Query
label_desc: Use image node_id 3 for calling a global function with example usage: test_spec_path_summary_auto_generation(app, client) without return types