<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)