code: def test_hop_pred_cudf():
      import cudf
  
      nodes_gdf = cudf.DataFrame(
          {"id": [0, 1, 2], "label": ["a", "b", "c"]}
      )
      edges_gdf = cudf.DataFrame({"src": [0, 1, 2], "dst": [1, 2, 0]})
      g = CGFull().nodes(nodes_gdf, "id").edges(edges_gdf, "src", "dst")
      g_nodes = g.hop(source_node_match={"id": is_in([0])})
      assert isinstance(g_nodes._nodes, cudf.DataFrame)
      assert len(g_nodes._nodes) == 2
      g_edges = g.hop(edge_match={"src": is_in([0])})
      assert isinstance(g_edges._edges, cudf.DataFrame)
      assert len(g_edges._edges) == 1
  
file_path: pygraphistry/graphistry/tests/compute/test_hop.py
imports: import os
  import pandas
  from graphistry.compute.predicates.is_in import is_in
  import pytest
  from graphistry.compute.ast import ASTNode, ASTEdge, n, e
  from graphistry.tests.test_compute import CGFull
label_desc: Use image node_id 6 for calling a global function with example usage: test_hop_pred_cudf() without return types