code: def contains(geometry, x, y):
      """
      Vectorized (element-wise) version of `contains` which checks whether
      multiple points are contained by a single geometry.
  
      Parameters
      ----------
      geometry : PreparedGeometry or subclass of BaseGeometry
          The geometry which is to be checked to see whether each point is
          contained within. The geometry will be "prepared" if it is not already
          a PreparedGeometry instance.
      x : array
          The x coordinates of the points to check.
      y : array
          The y coordinates of the points to check.
  
      Returns
      -------
      Mask of points contained by the given `geometry`.
  
      """
      if isinstance(geometry, PreparedGeometry):
          geometry = geometry.context
      shapely.prepare(geometry)
      return shapely.contains_xy(geometry, x, y)
  
imports: import numpy
  import shapely
  from shapely.prepared import PreparedGeometry
label_desc: Use image node_id 2 for calling a global function with example usage: contains(geometry, x, y) and returns: shapely