<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reset_tasks(self, request, context):
 """Resets all captured tasks."""

        _log_request(request, context)
        self.listener.memory.clear_tasks()
        return clearly_pb2.Empty()