code: def test_doc_security_invalid_value(app):
      @app.route("/foo")
      @app.doc(security={"BasicAuth": []})
      def foo():
          pass
  
      with pytest.raises(ValueError):
          app.spec
  
file_path: apiflask/tests/test_decorator_doc.py
imports: import pytest
  from flask.views import MethodView
  from openapi_spec_validator import validate_spec
  from .schemas import CustomHTTPError
  from .schemas import Foo
label_desc: Use image node_id 15 for calling a global function with example usage: test_doc_security_invalid_value(app) without return types