'Creates a new image record, optionally passing the image bits to
backend storage.
:param context: The `nova.context.Context` object for the request
:param image_info: A dict of information about the image that is
passed to the image registry.
:param data: Optional file handle or bytestream iterator that is
passed to backend storage.'

def create(self, context, image_info, data=None):

    session = self._get_session(context)
    return session.create(context, image_info, data=data)
