code: def find_geom(geom, geoms):
      """
      Returns the index of a geometry in a list of geometries avoiding
      expensive equality checks of `in` operator.
      """
      for i, g in enumerate(geoms):
          if g is geom:
              return i
  
file_path: geoviews/geoviews/operation/resample.py
imports: import param
  import numpy
  from holoviews import Polygons, Path
  from holoviews.streams import RangeXY
  from holoviews import Operation
  from shapely.geometry import Polygon
  from shapely.strtree import STRtree
  from ..util import polygons_to_geom_dicts, path_to_geom_dicts, shapely_v2
label_desc: Use image node_id 1 for calling a global function with example usage: find_geom(geom, geoms) and returns: i