code: def wait_socket(host, port, timeout=120):
      '''
      Wait for socket opened on remote side. Return False after timeout
      '''
      return wait_result(lambda: check_socket(host, port), True, timeoutf wait_socket(host, port, timeout=120):
      '''
      Wait for socket opened on remote side. Return False after timeout
      '''
      return wait_result(lambda: check_socket(host, port), True, timeout)
docs: Wait for socket opened on remote side. Return False after timeout