code: def test_multipoint_multilinestring_sliced_pairs(
      multipoint_generator, multilinestring_generator
  ):
      num_pairs = 2
      max_num_linestring_per_multilinestring = 2
      max_num_segments_per_linestring = 2
      max_num_points_per_multipoint = 2
  
      hpts = gpd.GeoSeries(
          [
              *multipoint_generator(
                  num_pairs, max_num_points_per_multipoint
              )
          ]
      )
      hlines = gpd.GeoSeries(
          [
              *multilinestring_generator(
                  num_pairs,
                  max_num_linestring_per_multilinestring,
                  max_num_segments_per_linestring,
              )
          ]
      )
  
      gpts = from_geopandas(hpts)
      glines = from_geopandas(hlines)
  
      hslicepts = hpts[0:1]
      hslicelines = hlines[0:1]
      slicegpts = gpts[0:1]
      sliceglines = glines[0:1]
      got = pairwise_point_linestring_distance(slicegpts, sliceglines)
      expected = hslicepts.distance(hslicelines)
  
      cudf.testing.assert_series_equal(got, cudf.Series(expected))
  
      hslicepts = hpts[1:2]
      hslicelines = hlines[1:2]
      slicegpts = gpts[1:2]
      sliceglines = glines[1:2]
      got = pairwise_point_linestring_distance(slicegpts, sliceglines)
      expected = hslicepts.distance(hslicelines)
  
      # Just dropping the index for now, that is not libcuSpatial's problem
      got.index = [1]
      cudf.testing.assert_series_equal(got, cudf.Series(expected))
  
file_path: cuspatial/python/cuspatial/cuspatial/tests/spatial/distance/test_point_linestring_distance.py
imports: import geopandas
  import pytest
  from shapely.geometry import LineString, MultiLineString, MultiPoint, Point, Polygon
  import cudf
  from cuspatial import pairwise_point_linestring_distance
  from cuspatial.io.geopandas import from_geopandas
label_desc: Use image node_id 7 for calling a global function with example usage: test_multipoint_multilinestring_sliced_pairs(multipoint_generator, multilinestring_generator) without return types