def is_rgb_like(image):
 return ((image.ndim == 3) and (image.shape[2] in (3, 4)))

def is_rgb_like ( image ) : return ( ( image . ndim == 3 ) and ( image . shape [ 2 ] in ( 3 , 4 ) ) )
return true if the image *looks* like its rgb .