code: def test_invalid_auth_header(self, token):
      with self.app.test_client() as test_client:
          response = test_client.get(
              "/api/v1/pools", headers={"Authorization": token}
          )
          assert response.status_code == 401
          assert (
              response.headers["Content-Type"]
              == "application/problem+json"
          )
          assert response.headers["WWW-Authenticate"] == "Basic"
          assert_401(response)
  
imports: from __future__ import annotations
  from base64 import b64encode
  import pytest
  from flask_login import current_user
  from tests.test_utils.api_connexion_utils import assert_401
  from tests.test_utils.config import conf_vars
  from tests.test_utils.db import clear_db_pools
  from tests.test_utils.www import client_with_login
label_desc: Use image node_id 4 for calling the TestBasicAuth obj's underlying member method code with example usage: obj.test_invalid_auth_header(token) without return types