Returns the last batch for the batched sequence.

        :rtype: :class:`Batch` instance.

def last(self):
        """
        Returns the last batch for the batched sequence.

        :rtype: :class:`Batch` instance.
        """
        start = max(self.number - 1, 0) * self.size
        return Batch(start, self.size, self.total_size)