def METHOD_NAME(pil_img, level, *args):
    degrees = int_parameter(sample_level(level), 30)
    if np.random.uniform() > 0.5:
        degrees = -degrees
    return pil_img.METHOD_NAME(degrees, resample=Image.BILINEAR)