<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stop_tracing(self, tid):
 """ Stop tracing mode in the given thread. @type tid: int @param tid: Global ID of thread to stop tracing. """

        if self.is_tracing(tid):
            thread = self.system.get_thread(tid)
            self.__stop_tracing(thread)