def set_phase(self, phase):
        if phase not in dict(self.PHASES):
            raise ValueError("Invalid phase %s" % phase)

        self.phase = phase
Pretty print array
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/assignments/models.py/Assignment.set_phase--crossover with--dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/end-to-end/Util.py/pprint