def _locations_mirror(x):
if hasattr(x, '<STR_LIT>'):<EOL><INDENT>if hasattr(x[<NUM_LIT:0>], '<STR_LIT>'):<EOL><INDENT>return list(map(_locations_mirror, x))<EOL><DEDENT>else:<EOL><INDENT>return list(x[::-<NUM_LIT:1>])<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return x<EOL><DEDENT>
Mirrors the points in a list-of-list-of-...-of-list-of-points.
For example:
>>> _locations_mirror([[[1, 2], [3, 4]], [5, 6], [7, 8]])
[[[2, 1], [4, 3]], [6, 5], [8, 7]]