def parse_utuple(s,urx,length=<NUM_LIT:2>):
if type(urx) != str:<EOL><INDENT>urx=urx.pattern;<EOL><DEDENT>if length is not None and length < <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>".format(length));<EOL><DEDENT>if length == <NUM_LIT:1>:<EOL><INDENT>rx = r"<STR_LIT>".format(urx=urx);<EOL><DEDENT>elif length is None:<EOL><INDENT>rx = r"<STR_LIT>".format(urx=urx);<EOL><DEDENT>else:<EOL><INDENT>rx = r"<STR_LIT>".format(<EOL>rep1=length-<NUM_LIT:1>,<EOL>urx=urx);<EOL><DEDENT>return re.match(rx,s)<EOL>
parse a string into a list of a uniform type