def _unpackXY(x, y):
if isinstance(x, str):<EOL><INDENT>x, y = center(locateOnScreen(x))<EOL><DEDENT>elif isinstance(x, collectionsSequence):<EOL><INDENT>if len(x) == <NUM_LIT:2>:<EOL><INDENT>if y is None:<EOL><INDENT>x, y = x<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(repr(y)))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(len(x)))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>pass <EOL><DEDENT>return x, y<EOL>
If x is a sequence and y is None, returns x[0], y[0]. Else, returns x, y.

    On functions that receive a pair of x,y coordinates, they can be passed as
    separate arguments, or as a single two-element sequence.