in code/experiment_synthetic/models.py [0:0]
def powerset(self, s): return chain.from_iterable(combinations(s, r) for r in range(len(s) + 1))