'Retrieves images shared with the given member.'

def index_shared_images(self, req, id):

    try:
        members = self.db_api.image_member_find(req.context, member=id)
    except exception.NotFound:
        msg = (_LW('Member    %(id)s    not    found') % {'id': id})
        LOG.warn(msg)
        msg = _('Membership    could    not    be    found.')
        raise webob.exc.HTTPBadRequest(explanation=msg)
    LOG.debug('Returning    list    of    images    shared    with    member    %(id)s', {'id': id})
    return dict(shared_images=make_member_list(members, image_id='image_id', can_share='can_share'))
