code: def test_post_id_foo(client: TestClient):
      response = client.put("/items/foo", json=None)
      assert response.status_code == 422
      assert response.json() == IsDict(
          {
              "detail": [
                  {
                      "type": "int_parsing",
                      "loc": ["path", "item_id"],
                      "msg": "Input should be a valid integer, unable to parse string as an integer",
                      "input": "foo",
                      "url": match_pydantic_error_url("int_parsing"),
                  }
              ]
          }
      ) | IsDict(
          # TODO: remove when deprecating Pydantic v1
          {
              "detail": [
                  {
                      "loc": ["path", "item_id"],
                      "msg": "value is not a valid integer",
                      "type": "type_error.integer",
                  }
              ]
          }
      )
  
file_path: fastapi/tests/test_tutorial/test_body_multiple_params/test_tutorial001_an_py39.py
imports: import pytest
  from dirty_equals import IsDict
  from fastapi.testclient import TestClient
  from fastapi.utils import match_pydantic_error_url
  from ...utils import needs_py39
label_desc: Use image node_id 5 for calling a global function with example usage: test_post_id_foo(client) without return types