code: def test_security_http_basic():
      response = client.get("/users/me", auth=("john", "secret"))
      assert response.status_code == 200, response.text
      assert response.json() == {
          "username": "john",
          "password": "secret",
      }
  
file_path: fastapi/tests/test_security_http_basic_realm_description.py
imports: from base64 import b64encode
  from fastapi import FastAPI, Security
  from fastapi.security import HTTPBasic, HTTPBasicCredentials
  from fastapi.testclient import TestClient
label_desc: Use image node_id 2 for calling a global function with example usage: test_security_http_basic() without return types