code: def run_test_quadtree_point_to_nearest_linestring_small(
      dtype, expected_distances
  ):
      x_min = 0
      x_max = 8
      y_min = 0
      y_max = 8
      scale = 1
      max_depth = 3
      min_size = 12
      expansion_radius = 2.0
      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()
      )
      linestring_points_x = small_poly_xs.astype(dtype)
      linestring_points_y = small_poly_ys.astype(dtype)
      linestrings = cuspatial.GeoSeries.from_linestrings_xy(
          cudf.DataFrame(
              {"x": linestring_points_x, "y": linestring_points_y}
          ).interleave_columns(),
          small_ring_offsets,
          cp.arange(len(small_ring_offsets)),
      )
      point_indices, quadtree = cuspatial.quadtree_on_points(
          points,
          x_min,
          x_max,
          y_min,
          y_max,
          scale,
          max_depth,
          min_size,
      )
      linestring_bboxes = cuspatial.linestring_bounding_boxes(
          linestrings,
          expansion_radius,
      )
      intersections = cuspatial.join_quadtree_and_bounding_boxes(
          quadtree,
          linestring_bboxes,
          x_min,
          x_max,
          y_min,
          y_max,
          scale,
          max_depth,
      )
      p2np_result = cuspatial.quadtree_point_to_nearest_linestring(
          intersections, quadtree, point_indices, points, linestrings
      )
      cudf.testing.assert_frame_equal(
          p2np_result,
          cudf.DataFrame(
              {
                  "point_index": cudf.Series(
                      [
                          0,
                          1,
                          2,
                          3,
                          4,
                          5,
                          6,
                          7,
                          8,
                          9,
                          10,
                          11,
                          12,
                          13,
                          14,
                          15,
                          16,
                          17,
                          18,
                          19,
                          20,
                          21,
                          22,
                          23,
                          24,
                          25,
                          26,
                          27,
                          28,
                          29,
                          30,
                          31,
                          32,
                          33,
                          34,
                          35,
                          36,
                          37,
                          38,
                          39,
                          40,
                          41,
                          42,
                          43,
                          44,
                          45,
                          46,
                          47,
                          48,
                          49,
                          50,
                          51,
                          52,
                          53,
                          54,
                          55,
                          56,
                          57,
                          58,
                          59,
                          60,
                          61,
                          62,
                          63,
                          64,
                          65,
                          66,
                          67,
                          68,
                          69,
                          70,
                      ],
                      dtype=np.uint32,
                  ),
                  "linestring_index": cudf.Series(
                      [
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          2,
                          2,
                          2,
                          2,
                          3,
                          2,
                          2,
                          2,
                          2,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          3,
                          2,
                          2,
                          2,
                          2,
                          2,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          1,
                          3,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                      ],
                      dtype=np.uint32,
                  ),
                  "distance": cudf.Series(
                      expected_distances, dtype=dtype
                  ),
              }
          ),
      )
  
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 5 for calling a global function with example usage: run_test_quadtree_point_to_nearest_linestring_small(dtype, expected_distances) without return types