<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def expect(connection, strexp, timeout=10):
        '''
        Expect one expression

        @param connection: Connection to the host
        @type connection: L{Connection}

        @param strexp: string to convert to expression (.*string.*)
        @type strexp: str

        @param timeout: timeout for performing expect operation
        @type timeout: int

        @return: True if succeeded
        @rtype: bool

        @raises ExpectFailed
        '''
        return Expect.expect_list(connection,
                                  [(re.compile(".*" + strexp + ".*",
                                               re.DOTALL), True)],
                                  timeout)