

def post_format(self, formatted_item, item):
    if ((not item) or (not formatted_item)):
        return
    if (self.tags is None):
        tags = collections.defaultdict(list)
        for tag in self.get_tags():
            tags[tag['item_id']].append(tag)
        self.tags = tags
    formatted_tags = []
    for tag in self.tags[item['id']]:
        formatted_tags.append({
            'key': tag['key'],
            'value': tag['value'],
        })
    if formatted_tags:
        tags['tagSet'] = formatted_tags

dataset/ETHPy150Open openstack/ec2-api/ec2api/api/common.py TaggableItemsDescriber.post_format/VarMisuse@135/172 `formatted_item`->`tags`