def set_image_opacity(img, alpha=0.5):
 return imageops.set_opacity(image_from_data(img), alpha)

def set_image_opacity ( img , alpha = 0.5 ) : return imageops . set_opacity ( image_from_data ( img ) , alpha )
change the opacity of img .