src/transformers/generation/beam_constraints.py/ConstraintListState/init_state
class ConstraintListState:    def init_state(self):
        self.complete_constraints = []
        self.inprogress_constraint = None
        self.pending_constraints = [constraint.copy(stateful=False) for constraint in self.constraints]