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

def create_image(self, data=None, headers=None):

    if (headers is None):
        headers = {}
    if (data is not None):
        return self._create_with_data(headers, data)
    (resp, body) = self.post('images', None, headers)
    self.expected_success(201, resp.status)
    body = json.loads(body)
    return rest_client.ResponseBody(resp, body)
