def sequential_id(self, uuid):
        if self.sequence is not None:
            return self.sequence.sequential_id(uuid)
        try:
            return int(uuid)
        except (ValueError, __HOLE__):
            raise ValueError("A `Sequence` instance is required "
                             "to use non integer uuid `%s`." % (uuid,))
dataset/ETHPy150Open caxap/redis-moment/moment/bitevents.py/Event.sequential_id