def __equivalent_lists(list1, list2):
    """Return True if list1 and list2 contain the same items."""
    if len(list1) != len(list2):
        return False

    for item in list1:
        if item not in list2:
            return False

    for item in list2:
        if item not in list1:
            return False

    return True