code: def test_read_item_name(client: TestClient):
      response = client.get("/items/bar/name")
      assert response.status_code == 200, response.text
      assert response.json() == {
          "name": "Bar",
          "description": "The Bar fighters",
      }
  
file_path: fastapi/tests/test_tutorial/test_response_model/test_tutorial005_py310.py
imports: import pytest
  from dirty_equals import IsDict, IsOneOf
  from fastapi.testclient import TestClient
  from ...utils import needs_py310
label_desc: Use image node_id 2 for calling a global function with example usage: test_read_item_name(client) without return types