def METHOD_NAME(self):
    img = ImageSource(
        Image.new("RGB", (100, 100), color=(100, 0, 200)),
        image_opts=ImageOptions(transparent=True),
    )
    # polygon with hole
    geom = "POLYGON((2 2, 2 8, 8 8, 8 2, 2 2), (4 4, 4 6, 6 6, 6 4, 4 4))"
    result = mask_image_source_from_coverage(
        img, [0, 0, 10, 10], SRS(4326), coverage(geom)
    )
    # 60*60 - 20*20 = 3200
    assert_img_colors_eq(
        result.as_image().getcolors(),
        [(10000 - 3200, (255, 255, 255, 0)), (3200, (100, 0, 200, 255))],
    )