def METHOD_NAME(api_client, data_fixture, tmpdir):
    user, token = data_fixture.create_user_and_token()
    page = data_fixture.create_builder_page(user=user)
    storage = FileSystemStorage(location=str(tmpdir), base_url="http://locaslhost")
    file = SimpleUploadedFile("test.txt", b"hello there")
    user_file = UserFileHandler().upload_user_file(user, "test", file, storage=storage)
    url = reverse("api:builder:element:list", kwargs={"page_id": page.id})
    response = api_client.post(
        url,
        {
            "type": ImageElementType.type,
            "image_file": UserFileSerializer(user_file).data,
            "image_source_type": ImageElement.IMAGE_SOURCE_TYPES.UPLOAD,
        },
        format="json",
        HTTP_AUTHORIZATION=f"JWT {token}",
    )
    assert response.status_code == 400
    assert response.json()["error"] == "ERROR_REQUEST_BODY_VALIDATION"
    assert response.json()["detail"]["image_file"][0]["code"] == "invalid"