@pick_context_manager_writer
def s3_image_create(context, image_uuid):
 try:
  s3_image_ref = models.S3Image()
  s3_image_ref.update({'uuid': image_uuid})
  s3_image_ref.save(context.session)
 except Exception as e:
  raise db_exc.DBError(e)
 return s3_image_ref

@ pick_context_manager_writer def s3_image_create ( context , image_uuid ) : try : s3_image_ref = models . S3Image ( ) s3_image_ref . update ( { 'uuid' : image_uuid } ) s3_image_ref . save ( context . session ) except Exception as e : raise db_exc . DBError ( e ) return s3_image_ref
create local s3 image represented by provided uuid .