def METHOD_NAME():
    # Target image creation, inspected by eye.
    # >>> im = Image.open('Tests/images/hopper.ppm')
    # >>> im = im.rotate(45, resample=Image.Resampling.BICUBIC, expand=True)
    # >>> im.save('Tests/images/hopper_45.png')
    with Image.open("Tests/images/hopper_45.png") as target:
        for resample, epsilon in (
            (Image.Resampling.NEAREST, 10),
            (Image.Resampling.BILINEAR, 5),
            (Image.Resampling.BICUBIC, 0),
        ):
            im = hopper()
            im = im.rotate(45, resample=resample, expand=True)
            assert_image_similar(im, target, epsilon)