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

sorted(list(range(len(a))), key=lambda i: a[i], reverse=True)[:2]

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