<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wait_for(scope, prompt):
 """ Waits until the response of the remote host contains the given pattern. :type prompt: regex :param prompt: The prompt pattern. """

    conn = scope.get('__connection__')
    conn.expect(prompt)
    scope.define(__response__=conn.response)
    return True