def METHOD_NAME():
    im = hopper()
    im.thumbnail((18, 18), Image.Resampling.BICUBIC)
    ref = hopper()
    ref.thumbnail((18, 18), Image.Resampling.BICUBIC, reducing_gap=2.0)
    # reducing_gap=2.0 should be the default
    assert_image_equal(ref, im)
    ref = hopper()
    ref.thumbnail((18, 18), Image.Resampling.BICUBIC, reducing_gap=None)
    with pytest.raises(AssertionError):
        assert_image_equal(ref, im)
    assert_image_similar(ref, im, 3.5)