def _gather_update_categories(updateCollection):
    categories = []
    for i in range(updateCollection.Count):
        update = updateCollection.Item(i)
        for j in range(update.Categories.Count):
            name = update.Categories.Item(j).Name
            if name not in categories:
                log.debug('found category: {0}'.format(name))
                categories.append(name)
    return categories
this is a convenience method to gather what categories of updates are available in any update
dataset/ETHPy150Open saltstack/salt/salt/modules/win_update.py/_gather_update_categories