def METHOD_NAME(self):
    """Create a PIL image to test the script."""
    assert self.is_valid()
    from PIL import Image
    im = Image.new('RGB', (self.width, self.height))
    pixels = im.load()
    for y in range(self.height):
        for x in range(self.width):
            i = 3 * (y * self.width + x)
            r = clamp_int(255.0 * self.data[i], 0, 255)
            g = clamp_int(255.0 * self.data[i + 1], 0, 255)
            b = clamp_int(255.0 * self.data[i + 2], 0, 255)
            pixels[x, y] = (r, g, b)
    return im