What complex shape doesn't fit the pattern?
Given an array of simple polygons, return the zero-based index of the single polygon that is not congruent to the others. Polygons are represented by vertices in boundary order. Congruence allows translation, rotation, reflection, cyclic changes to the starting vertex, and either traversal direction.
Implement find_outlier(shapes). The input is an array of polygons, each polygon being an array of two-integer coordinate pairs. Return an integer index.
def find_outlier(shapes):