def is_image_mutable(context, image):
 if context.is_admin:
  return True
 if ((image.owner is None) or (context.owner is None)):
  return False
 return (image.owner == context.owner)

def is_image_mutable ( context , image ) : if context . is_admin : return True if ( ( image . owner is None ) or ( context . owner is None ) ) : return False return ( image . owner == context . owner )
return true if the image is mutable in this context .