def test_tile_size_cannot_be_larger_than_image_size() -> None:
    """Larger tile size than image size is not desired, and causes issues."""
    tiler = Tiler(tile_size=1024, stride=512)
    image = torch.rand(1, 3, 512, 512)
    with pytest.raises(ValueError):  # noqa: PT011
        tiler.tile(image)
Larger tile size than image size is not desired, and causes issues.
tests/unit/data/utils/test_tiler.py