code: def test_incorrect_token(client: TestClient):
      response = client.get(
          "/users/me", headers={"Authorization": "Bearer nonexistent"}
      )
      assert response.status_code == 401, response.text
      assert response.json() == {
          "detail": "Invalid authentication credentials"
      }
      assert response.headers["WWW-Authenticate"] == "Bearer"
  
file_path: fastapi/tests/test_tutorial/test_security/test_tutorial003_py310.py
imports: import pytest
  from dirty_equals import IsDict
  from fastapi.testclient import TestClient
  from ...utils import needs_py310
label_desc: Use image node_id 7 for calling a global function with example usage: test_incorrect_token(client) without return types