def METHOD_NAME():
    output = io.BytesIO()
    im = hopper()
    im.save(output, "BMP")
    output.seek(0)
    with Image.open(output) as reloaded:
        assert im.mode == reloaded.mode
        assert im.size == reloaded.size
        assert reloaded.format == "BMP"