code: def test_get_item_not_found_header():
      response = client.get("/items-header/bar")
      assert response.status_code == 404, response.text
      assert response.headers.get("x-error") == "There goes my error"
      assert response.json() == {"detail": "Item not found"}
  
imports: from fastapi.testclient import TestClient
  from docs_src.handling_errors.tutorial002 import app
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_item_not_found_header() without return types