code: def handshake_timed_out(self):
          
          if not self.__timer:
              return False
          if self.__handshake_complete:
              return False
          return self.__timer_expired
docs: Checks if the handshake has timed out.
  
          If `start_handshake` wasn't called before the call to this function,
          the return value will always be `False`. If the handshake completed
          before a timeout was reached, the return value will be `False`
  
          :return: handshake time out status, as a `bool`