code: def test_items_bar_with_invalid_token(client: TestClient):
      response = client.get(
          "/items/bar?token=jessica", headers={"X-Token": "invalid"}
      )
      assert response.status_code == 400
      assert response.json() == {"detail": "X-Token header invalid"}
  
imports: import pytest
  from dirty_equals import IsDict
  from fastapi.testclient import TestClient
  from fastapi.utils import match_pydantic_error_url
label_desc: Use image node_id 15 for calling a global function with example usage: test_items_bar_with_invalid_token(client) without return types