code: def test_openapi_schema(client: TestClient):
      response = client.get("/openapi.json")
      assert response.status_code == 200, response.text
      assert response.json() == {
          "openapi": "3.1.0",
          "info": {"title": "FastAPI", "version": "0.1.0"},
          "paths": {
              "/items/": {
                  "get": {
                      "responses": {
                          "200": {
                              "description": "Successful Response",
                              "content": {
                                  "application/json": {"schema": {}}
                              },
                          }
                      },
                      "summary": "Read Items",
                      "operationId": "read_items_items__get",
                      "security": [{"OAuth2PasswordBearer": []}],
                  }
              }
          },
          "components": {
              "securitySchemes": {
                  "OAuth2PasswordBearer": {
                      "type": "oauth2",
                      "flows": {
                          "password": {
                              "scopes": {},
                              "tokenUrl": "token",
                          }
                      },
                  }
              }
          },
      }
  
file_path: fastapi/tests/test_tutorial/test_security/test_tutorial001_an_py39.py
imports: import pytest
  from fastapi.testclient import TestClient
  from ...utils import needs_py39
label_desc: Use image node_id 5 for calling a global function with example usage: test_openapi_schema(client) without return types