code: def wait_running(self, timeout=None):
          
  
          flag = self._running.wait(timeout)
  
          if flag is False:
              raise TimeoutExpiredError("Timeout waiting for thread to start running")
docs: Wait for the thread to pass control to its routine.
  
          Args:
              timeout (float): The maximum amount of time to wait