code: def test_chain_kv_cudf_pd():
      nodes_df = pd.DataFrame(
          {"id": [0, 1, 2], "label": ["a", "b", "c"]}
      )
      edges_df = pd.DataFrame({"src": [0, 1, 2], "dst": [1, 2, 0]})
      g = CGFull().nodes(nodes_df, "id").edges(edges_df, "src", "dst")
      g_nodes = g.chain([n({"id": 0})])
      assert isinstance(g_nodes._nodes, pd.DataFrame)
      assert len(g_nodes._nodes) == 1
      g_edges = g.chain([e({"src": 0})])
      assert isinstance(g_edges._edges, pd.DataFrame)
      assert len(g_edges._edges) == 1
  
file_path: pygraphistry/graphistry/tests/compute/test_chain.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.compute.chain import Chain
  from graphistry.tests.test_compute import CGFull
label_desc: Use image node_id 7 for calling a global function with example usage: test_chain_kv_cudf_pd() without return types