code: def _pairwise_contains_properly(points, polygons):
      """Compute from a series of polygons and an equal-length series of points
      which points are properly contained within the corresponding polygon.
      Polygon A contains Point B properly if B intersects the interior of A
      but not the boundary (or exterior).
  
      Note that polygons must be closed: the first and last vertex of each
      polygon must be the same.
  
  
      Parameters
      ----------
      points : GeoSeries
          A GeoSeries of points.
      polygons : GeoSeries
          A GeoSeries of polygons.
  
      Returns
      -------
      result : cudf.DataFrame
          A DataFrame of boolean values indicating whether each point falls
          within its corresponding polygon.
      """
      result_column = cpp_pairwise_point_in_polygon(
          as_column(points.points.x),
          as_column(points.points.y),
          as_column(polygons.polygons.part_offset),
          as_column(polygons.polygons.ring_offset),
          as_column(polygons.polygons.x),
          as_column(polygons.polygons.y),
      )
      # Pairwise returns a boolean column with a True value for each (polygon,
      # point) pair where the point is contained properly by the polygon. We can
      # use this to create a dataframe with only (polygon, point) pairs that
      # satisfy the relationship.
      pip_result = cudf.Series(result_column, dtype="bool")
      trues = pip_result[pip_result].index
      true_pairs = cudf.DataFrame(
          {
              "pairwise_index": trues,
              "point_index": trues,
              "result": True,
          }
      )
      return true_pairs
  
file_path: cuspatial/python/cuspatial/cuspatial/core/binpreds/contains.py
imports: from math import ceil, sqrt
  import cudf
  from cudf import DataFrame, Series
  from cudf.core.column import as_column
  import cuspatial
  from cuspatial._lib.pairwise_point_in_polygon import pairwise_point_in_polygon
  from cuspatial._lib.point_in_polygon import point_in_polygon
  from cuspatial.utils.join_utils import pip_bitmap_column_to_binary_array
label_desc: Use image node_id 3 for calling a global function with example usage: _pairwise_contains_properly(points, polygons) and returns: true_pairs