def METHOD_NAME(sample_point: Point) -> int:
    """ Method used to sample image. """
    if sample_point[0] < 0 \
            or sample_point[1] < 0 \
            or sample_point[0] >= image.width \
            or sample_point[1] >= image.height:
        return 0
    point_tuple = int(sample_point[0]), int(sample_point[1])
    color = image.getpixel(point_tuple)
    return 255 if color[3] > 0 else 0