code: def test_post_file_no_token(tmp_path, app: FastAPI):
      path = tmp_path / "test.txt"
      path.write_bytes(b"<file content>")
  
      client = TestClient(app)
      with path.open("rb") as file:
          response = client.post("/files/", files={"file": file})
      assert response.status_code == 422, response.text
      assert response.json() == IsDict(
          {
              "detail": [
                  {
                      "type": "missing",
                      "loc": ["body", "fileb"],
                      "msg": "Field required",
                      "input": None,
                      "url": match_pydantic_error_url("missing"),
                  },
                  {
                      "type": "missing",
                      "loc": ["body", "token"],
                      "msg": "Field required",
                      "input": None,
                      "url": match_pydantic_error_url("missing"),
                  },
              ]
          }
      ) | IsDict(
          # TODO: remove when deprecating Pydantic v1
          {
              "detail": [
                  {
                      "loc": ["body", "fileb"],
                      "msg": "field required",
                      "type": "value_error.missing",
                  },
                  {
                      "loc": ["body", "token"],
                      "msg": "field required",
                      "type": "value_error.missing",
                  },
              ]
          }
      )
  
file_path: fastapi/tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py
imports: import pytest
  from dirty_equals import IsDict
  from fastapi import FastAPI
  from fastapi.testclient import TestClient
  from fastapi.utils import match_pydantic_error_url
label_desc: Use image node_id 6 for calling a global function with example usage: test_post_file_no_token(tmp_path, app) without return types