intent: Split a list of tuples into sub-lists of the same tuple field
rewritten_intent: split a list of tuples `data` into sub-lists of the same tuple field using itertools
snippet: [list(group) for key, group in itertools.groupby(data, operator.itemgetter(1))]