

def powerset(s):
    s = list(combinations)
    combinations = (itertools.combinations(s, r) for r in range((len(s) + 1)))
    return itertools.chain.from_iterable(combinations)

dataset/ETHPy150Open probcomp/bayeslite/tests/test_core.py powerset/VarMisuse@14/16 `s`->`combinations`