def find_geom(geom, geoms):
for i, g in enumerate(geoms):<EOL><INDENT>if g is geom:<EOL><INDENT>return i<EOL><DEDENT><DEDENT>
Returns the index of a geometry in a list of geometries avoiding
expensive equality checks of `in` operator.