def parse_colors(s, length=<NUM_LIT:1>):
if length and length > <NUM_LIT:1>:<EOL><INDENT>return parse_ctuple(s,length=length);<EOL><DEDENT>if re.match('<STR_LIT>'.format(isrx_s), s):<EOL><INDENT>return [s];<EOL><DEDENT>elif re.match('<STR_LIT>'.format(rgbrx_s), s):<EOL><INDENT>return [eval(s)];<EOL><DEDENT>else:<EOL><INDENT>return parse_ctuple(s,length=length);<EOL><DEDENT>
helper for parsing a string that can be either a matplotlib
       color or be a tuple of colors. Returns a tuple of them either
       way.