def METHOD_NAME(tmp_path):
    temp_file = str(tmp_path / "temp.ico")
    temp_file2 = str(tmp_path / "temp2.ico")
    im = hopper()
    sizes = [(32, 32), (64, 64)]
    im.save(temp_file, "ico", sizes=sizes)
    sizes.append(sizes[-1])
    im.save(temp_file2, "ico", sizes=sizes)
    assert os.path.getsize(temp_file) == os.path.getsize(temp_file2)