def METHOD_NAME(fill, w, h, filename="test.png"):
    from PIL import Image, ImageDraw
    im = Image.new("RGBA", (w, h), "white")
    METHOD_NAME = ImageDraw.Draw(im)
    last_x = None
    last_y = None
    for x, y in fill:
        if last_x is not None:
            METHOD_NAME.line((last_x, last_y, x, y), fill="black")
        last_x, last_y = x, y
    im.save(filename)