def METHOD_NAME(normalize):
    """Test that normalize argument works as expected."""
    metric = LearnedPerceptualImagePatchSimilarity(net_type="squeeze", normalize=normalize)
    res = metric(_inputs.img1[0], _inputs.img2[1])
    res2 = _compare_fn(_inputs.img1[0], _inputs.img2[1], net_type="squeeze", normalize=normalize)
    assert res == res2