<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cancel(self):
 """ stops the timer. call_back function is not called """

        self.event.clear()
        if self.__timer is not None:
            self.__timer.cancel()