code: def test_response():
      # For coverage
      response = client.get("/foo")
      assert response.status_code == 200, response.text
      assert response.json() == {"name": "Foo item"}
  
file_path: fastapi/tests/test_custom_schema_fields.py
imports: from fastapi import FastAPI
  from fastapi._compat import PYDANTIC_V2
  from fastapi.testclient import TestClient
  from pydantic import BaseModel
label_desc: Use image node_id 3 for calling a global function with example usage: test_response() without return types