code: def test_security_http_basic_no_credentials():
      response = client.get("/users/me")
      assert response.json() == {"detail": "Not authenticated"}
      assert response.status_code == 401, response.text
      assert response.headers["WWW-Authenticate"] == "Basic"
  
file_path: fastapi/tests/test_tutorial/test_security/test_tutorial006_an.py
imports: from base64 import b64encode
  from fastapi.testclient import TestClient
  from docs_src.security.tutorial006_an import app
label_desc: Use image node_id 2 for calling a global function with example usage: test_security_http_basic_no_credentials() without return types