code: def pairwise_linestring_distance(
      multilinestrings1: GeoSeries, multilinestrings2: GeoSeries
  ):
      """Compute distance between (multi)linestring-(multi)linestring pairs
  
      The shortest distance between two linestrings is defined as the shortest
      distance between all pairs of segments of the two linestrings. If any of
      the segments intersect, the distance is 0.
  
      Parameters
      ----------
      multilinestrings1 : GeoSeries
          A GeoSeries of (multi)linestrings
      multilinestrings2 : GeoSeries
          A GeoSeries of (multi)linestrings
  
      Returns
      -------
      distance : cudf.Series
          the distance between each pair of linestrings
  
      Examples
      --------
      >>> from shapely.geometry import LineString, MultiLineString
      >>> ls1 = cuspatial.GeoSeries([
      ...     LineString([(0, 0), (1, 1)]),
      ...     LineString([(1, 0), (2, 1)])
      ... ])
      >>> ls2 = cuspatial.GeoSeries([
      ...     MultiLineString([
      ...         LineString([(-1, 0), (-2, -1)]),
      ...         LineString([(-2, -1), (-3, -2)])
      ...     ]),
      ...     MultiLineString([
      ...         LineString([(0, -1), (0, -2), (0, -3)]),
      ...         LineString([(0, -3), (-1, -3), (-2, -3)])
      ...     ])
      ... ])
      >>> cuspatial.pairwise_linestring_distance(ls1, ls2)
      0    1.000000
      1    1.414214
      dtype: float64
      """
  
      if not len(multilinestrings1) == len(multilinestrings2):
          raise ValueError(
              "`multilinestrings1` and `multilinestrings2` must have the same "
              "length"
          )
  
      if len(multilinestrings1) == 0:
          return cudf.Series(dtype="float64")
  
      if not contains_only_linestrings(
          multilinestrings1
      ) or not contains_only_linestrings(multilinestrings2):
          raise ValueError(
              "`multilinestrings1` and `multilinestrings2` must contain only "
              "linestrings"
          )
  
      if len(multilinestrings1) == 0:
          return cudf.Series(dtype="float64")
  
      return Series._from_data(
          {
              None: cpp_pairwise_linestring_distance(
                  multilinestrings1.lines.column(),
                  multilinestrings2.lines.column(),
              )
          }
      )
  
file_path: cuspatial/python/cuspatial/cuspatial/core/spatial/distance.py
imports: import cudf
  from cudf import DataFrame, Series
  from cudf.core.column import as_column
  from cuspatial._lib.distance import directed_hausdorff_distance, haversine_distance, pairwise_linestring_distance, pairwise_linestring_polygon_distance, pairwise_point_distance, pairwise_point_linestring_distance, pairwise_point_polygon_distance, pairwise_polygon_distance
  from cuspatial._lib.types import CollectionType
  from cuspatial.core.geoseries import GeoSeries
  from cuspatial.utils.column_utils import contains_only_linestrings, contains_only_multipoints, contains_only_points, contains_only_polygons
label_desc: Use image node_id 4 for calling a global function with example usage: pairwise_linestring_distance(multilinestrings1, multilinestrings2) and returns: Series, cudf, cudf