<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def end_task(self):
        '''
        Remove the current task from the stack.
        '''
        self.progress(self.task_stack[-1].size)
        self.task_stack.pop()