def is_color_like(c):
 try:
  colorConverter.to_rgb(c)
  return True
 except ValueError:
  return False

def is_color_like ( c ) : try : colorConverter . to_rgb ( c ) return True except ValueError : return False
return whether c can be interpreted as an rgb(a) color .