'Create an image member.
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref/image/v2/#create-image-member'

def create_image_member(self, image_id, **kwargs):

    url = ('images/%s/members' % image_id)
    data = json.dumps(kwargs)
    (resp, body) = self.post(url, data)
    self.expected_success(200, resp.status)
    body = json.loads(body)
    return rest_client.ResponseBody(resp, body)
