def METHOD_NAME(r, param, changed, state, ch):
    r.zadd('foo', {'four': 4.0, 'three': 3.0})
    assert r.zadd('foo', param, xx=True, ch=ch) == (changed if ch else 0)
    assert r.zrange('foo', 0, -1, withscores=True) == state