<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def verify_message(lines, expected_response):
 """ Looks for expectedResponse in lines. :param lines: a list of strings to look through :param expected_response: list or str to look for in lines. :return: True or False. :raises: TypeError if expectedResponse was not list or str. LookUpError through FindNext function. """

    position = 0
    if isinstance(expected_response, basestring):
        expected_response = [expected_response]
    if isinstance(expected_response, set):
        expected_response = list(expected_response)
    if not isinstance(expected_response, list):
        raise TypeError("verify_message: expectedResponse must be list, set or string")
    for message in expected_response:
        try:
            found, position, _ = find_next(lines, message, position)
            if not found:
                return False
            position = position + 1
        except TypeError:
            return False
        except LookupError:
            return False
    return True