code: def test_info(app, client):
      app.config["INFO"] = {
          "description": "My API",
          "termsOfService": "http://example.com",
          "contact": {
              "name": "API Support",
              "url": "http://www.example.com/support",
              "email": "support@example.com",
          },
          "license": {
              "name": "Apache 2.0",
              "url": "http://www.apache.org/licenses/LICENSE-2.0.html",
          },
      }
  
      rv = client.get("/openapi.json")
      assert rv.status_code == 200
      validate_spec(rv.json)
      assert (
          rv.json["info"]["description"]
          == app.config["INFO"]["description"]
      )
      assert (
          rv.json["info"]["termsOfService"]
          == app.config["INFO"]["termsOfService"]
      )
      assert rv.json["info"]["contact"] == app.config["INFO"]["contact"]
      assert rv.json["info"]["license"] == app.config["INFO"]["license"]
  
imports: from openapi_spec_validator import validate_spec
label_desc: Use image node_id 2 for calling a global function with example usage: test_info(app, client) without return types