<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def index_element_map(arr):
 """Map the indices of the array to the respective elements. Parameters arr : list(a) The array to process, of generic type a Returns dict(int -> a), a dictionary corresponding the index to the element """

    index_to_element = {}
    for index, element in enumerate(arr):
        index_to_element[index] = element
    return index_to_element