def does_advance(self, token_id: int):
        """
        Reads in a token and returns whether it creates progress.
        """
        raise NotImplementedError(
            f"{self.__class__} is an abstract class. Only classes inheriting this class can be called."
        )

        Reads in a token and returns whether it creates progress.
        
dpkd/transformers/src/transformers/generation/beam_constraints.py