code: def wait_for(scope, prompt):
      
      conn = scope.get('__connection__')
      conn.expect(prompt)
      scope.define(__response__=conn.response)
      return True
docs: Waits until the response of the remote host contains the given pattern.
  
      :type  prompt: regex
      :param prompt: The prompt pattern.