<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _all_indexes_same(indexes):
 """ Determine if all indexes contain the same elements. Parameters indexes : list of Index objects Returns ------- bool True if all indexes contain the same elements, False otherwise. """

    first = indexes[0]
    for index in indexes[1:]:
        if not first.equals(index):
            return False
    return True