code: def bench_distance_linestring_polygon(
      benchmark,
      lib,
      linestring_generator_device,
      polygon_generator_device,
      n,
      align,
      num_segments,
      num_sides,
  ):
      lines = linestring_generator_device(int(n), num_segments)
      polygons = polygon_generator_device(int(n), num_sides)
      index = cudf.Index(cupy.arange(len(lines) - 1, -1, -1))
  
      if lib == "geopandas":
          lines = lines.to_geopandas()
          polygons = polygons.to_geopandas()
          index = index.to_pandas()
  
      lines.index = index
      benchmark(lines.distance, polygons, align)
  
imports: import cupy
  import geopandas
  import pytest
  import cudf
  import cuspatial
label_desc: Use image node_id 22 for calling a global function with example usage: bench_distance_linestring_polygon(benchmark, lib, linestring_generator_device, polygon_generator_device, n, align, num_segments, num_sides) without return types