<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cmy_to_rgb(c, m=None, y=None):
 """Convert the color from CMY coordinates to RGB. Parameters: :c: :m: :y: Returns: The color as an (r, g, b) tuple in the range: (1, 0.5, 0) """

  if type(c) in [list,tuple]:
    c, m, y = c
  return (1-c, 1-m, 1-y)