code: def test_polygon_join_small(dtype):
      x_min = 0
      x_max = 8
      y_min = 0
      y_max = 8
      scale = 1
      max_depth = 3
      min_size = 12
      points_x = small_points_x.astype(dtype)
      points_y = small_points_y.astype(dtype)
      points = cuspatial.GeoSeries.from_points_xy(
          cudf.DataFrame(
              {
                  "x": points_x,  # x
                  "y": points_y,  # y
              }
          ).interleave_columns()
      )
      poly_points_x = small_poly_xs.astype(dtype)
      poly_points_y = small_poly_ys.astype(dtype)
      point_indices, quadtree = cuspatial.quadtree_on_points(
          points,
          x_min,
          x_max,
          y_min,
          y_max,
          scale,
          max_depth,
          min_size,
      )
      xy = cudf.DataFrame(
          {"x": poly_points_x, "y": poly_points_y}
      ).interleave_columns()
      polygons = cuspatial.GeoSeries.from_polygons_xy(
          xy,
          small_ring_offsets,
          small_poly_offsets,
          cp.arange(len(small_poly_offsets)),
      )
      poly_bboxes = cuspatial.polygon_bounding_boxes(polygons)
      intersections = cuspatial.join_quadtree_and_bounding_boxes(
          quadtree,
          poly_bboxes,
          x_min,
          x_max,
          y_min,
          y_max,
          scale,
          max_depth,
      )
      cudf.testing.assert_frame_equal(
          intersections,
          cudf.DataFrame(
              {
                  "bbox_offset": cudf.Series(
                      [3, 3, 1, 2, 1, 1, 0, 3], dtype=np.uint32
                  ),
                  "quad_offset": cudf.Series(
                      [10, 11, 6, 6, 12, 13, 2, 2], dtype=np.uint32
                  ),
              }
          ),
      )
  
file_path: cuspatial/python/cuspatial/cuspatial/tests/spatial/join/test_spatial_join.py
imports: import cupy
  import numpy
  import pytest
  import cudf
  import cuspatial
label_desc: Use image node_id 2 for calling a global function with example usage: test_polygon_join_small(dtype) without return types