def value_indexes_mapping(l):
pt = copy.deepcopy(l)<EOL>desc = {}<EOL>vset = set({})<EOL>for v in pt:<EOL><INDENT>vset.add(v)<EOL><DEDENT>for v in vset:<EOL><INDENT>desc[v] = []<EOL><DEDENT>for i in range(<NUM_LIT:0>,l.__len__()):<EOL><INDENT>desc[l[i]].append(i)<EOL><DEDENT>return(desc)<EOL>
from elist.elist import *
from elist.jprint import pobj
l = ['a','b','b','a','c','b']
desc = value_indexes_mapping(l)
pobj(desc)