src/transformers/generation/beam_search.py/ConstrainedBeamSearchScorer/make_constraint_states
class ConstrainedBeamSearchScorer:    def make_constraint_states(self, n):
        return [ConstraintListState([constraint.copy() for constraint in self.constraints]) for _ in range(n)]