code: def run_test(pred, dispatch_list):
      lhs, rhs = sample_test_data(features, dispatch_list, cuspatial)
      gpdlhs, gpdrhs = sample_test_data(
          features, dispatch_list, geopandas
      )
  
      # Reverse
      pred_fn = getattr(rhs, pred)
      got = pred_fn(lhs)
      gpd_pred_fn = getattr(gpdrhs, pred)
      expected = gpd_pred_fn(gpdlhs)
      assert (got.values_host == expected.values).all()
  
      # Forward
      pred_fn = getattr(lhs, pred)
      got = pred_fn(rhs)
      gpd_pred_fn = getattr(gpdlhs, pred)
      expected = gpd_pred_fn(gpdrhs)
      assert (got.values_host == expected.values).all()
  
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 2 for calling a global function with example usage: run_test(pred, dispatch_list) without return types