code: def test_users_with_no_token(client: TestClient):
      response = client.get("/users")
      assert response.status_code == 422
      assert response.json() == IsDict(
          {
              "detail": [
                  {
                      "type": "missing",
                      "loc": ["query", "token"],
                      "msg": "Field required",
                      "input": None,
                      "url": match_pydantic_error_url("missing"),
                  }
              ]
          }
      ) | IsDict(
          # TODO: remove when deprecating Pydantic v1
          {
              "detail": [
                  {
                      "loc": ["query", "token"],
                      "msg": "field required",
                      "type": "value_error.missing",
                  },
              ]
          }
      )
  
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 3 for calling a global function with example usage: test_users_with_no_token(client) without return types