def parse_cropbox(cropbox):
if isinstance(cropbox, six.text_type):<EOL><INDENT>return tuple([int(x.strip()) for x in cropbox.split('<STR_LIT:U+002C>')])<EOL><DEDENT>else:<EOL><INDENT>return tuple(cropbox)<EOL><DEDENT>
Returns x, y, x2, y2 tuple for cropping.