human
I wrote the below code

    def _fetch_attrs(d, attrs):
        return {a: d[a] for a in attrs if (a in d.keys())}
    properties = {p['name']: p['value'] for p in image['properties'] if (not p['deleted'])}
    image_dict = _fetch_attrs(image, glance.db.IMAGE_ATTRS)
    image_dict['properties'] = properties
    _limit_locations(image_dict)
    return image_dict

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def make_image_dict(image):