human
Get index of the top n values of a list in python
assistant
Here is some code to get indexes of the largest `2` values from a list `a` using itemgetter

zip(*sorted(enumerate(a), key=operator.itemgetter(1)))[0][-2:]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.