code: def sample_test_data(features, dispatch_list, lib=cuspatial):
      """Creates either a cuSpatial or geopandas GeoSeries object using the
      features in `features` and the list of features to sample from
      `dispatch_list`.
      """
      geometry_tuples = [features[key][1:3] for key in dispatch_list]
      geometries = [
          [lhs_geo for lhs_geo, _ in geometry_tuples],
          [rhs_geo for _, rhs_geo in geometry_tuples],
      ]
      lhs = lib.GeoSeries(list(geometries[0]))
      rhs = lib.GeoSeries(list(geometries[1]))
      return (lhs, rhs)
  
file_path: cuspatial/python/cuspatial/cuspatial/tests/binpreds/test_binpred_each_dispatch_list.py
imports: import geopandas
  from binpred_test_dispatch import predicate
  import cuspatial
  from cuspatial.testing.test_geometries import features, linestring_linestring_dispatch_list, linestring_polygon_dispatch_list, point_linestring_dispatch_list, point_point_dispatch_list, point_polygon_dispatch_list, polygon_polygon_dispatch_list
label_desc: Use image node_id 1 for calling a global function with example usage: sample_test_data(features, dispatch_list, lib) and returns: lhs,  rhs