from pathlib import Path


def api_image_file(
    test_image_path: Path,
) -> dict[str, tuple[str, bytes, str]]:
    """Return the dict with file needed to use post requests."""
    return {
        "file": (
            test_image_path.name,
            test_image_path.open("rb").read(),
            "image/png",
        ),
    }