from typing import OrderedDict


def getitemsets(schema):
    """Return an ordered dictionary of itemsets with 'name' as key"""
    return OrderedDict([(itemset['name'], itemset) for itemset in
                        schema['result']['item_sets']])