code: def test_security_shemes(app, client):
      app.config["SECURITY_SCHEMES"] = {
          "ApiKeyAuth": {
              "type": "apiKey",
              "in": "header",
              "name": "X-API-Key",
          },
          "BasicAuth": {
              "type": "http",
              "scheme": "basic",
          },
      }
  
      rv = client.get("/openapi.json")
      assert rv.status_code == 200
      validate_spec(rv.json)
      assert len(rv.json["components"]["securitySchemes"]) == 2
      assert (
          rv.json["components"]["securitySchemes"]["ApiKeyAuth"]
          == app.config["SECURITY_SCHEMES"]["ApiKeyAuth"]
      )
      assert (
          rv.json["components"]["securitySchemes"]["BasicAuth"]
          == app.config["SECURITY_SCHEMES"]["BasicAuth"]
      )
  
imports: from openapi_spec_validator import validate_spec
label_desc: Use image node_id 4 for calling a global function with example usage: test_security_shemes(app, client) without return types