intent: Summarizing a dictionary of arrays in Python
rewritten_intent: sort dictionary `mydict` in descending order based on the sum of each value in it
snippet: sorted(iter(mydict.items()), key=lambda tup: sum(tup[1]), reverse=True)[:3]