code: def execute_test(pred, lhs, rhs):
      gpdlhs = lhs.to_geopandas()
      gpdrhs = rhs.to_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()
  
imports: import os
  import pandas
  from binpred_test_dispatch import predicate, simple_test
label_desc: Use image node_id 1 for calling a global function with example usage: execute_test(pred, lhs, rhs) without return types