<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_indexes(self):
 """ Get a dict of index names to index """

        ret = {}
        for index in self.iter_query_indexes():
            ret[index.name] = index
        return ret