def unique(gen):
    memo = set()
    for x in gen:
        if x not in memo:
            memo.add(x)
            yield x
Helper method to get the full response back from pulseaudio.
dataset/ETHPy150Open Microsoft/ivy/src/ivy/ivy_utils.py/unique--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/pulseaudio_loopback.py/PAServer._get_full_response