code: def test_random_multipoint_multilinestring_pairs(
      num_pairs, multipoint_generator, multilinestring_generator
  ):
      max_num_points_per_multipoint = 10
      max_num_linestring_per_multilinestring = 10
      max_num_segments_per_linestring = 50
  
      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)
  
      got = pairwise_point_linestring_distance(gpts, glines)
      expected = hpts.distance(hlines)
  
      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 5 for calling a global function with example usage: test_random_multipoint_multilinestring_pairs(num_pairs, multipoint_generator, multilinestring_generator) without return types