code: def test_enrich_with_stat(self):
      g = graphistry.edges(
          pd.DataFrame(
              {"s": [x[0] for x in edges], "d": [x[1] for x in edges]}
          ),
          "s",
          "d",
      )
      ig = g.to_igraph()
      ig.vs["spinglass"] = ig.community_spinglass(spins=3).membership
      g2 = g.from_igraph(ig)
      logger.debug("g2 nodes: %s", g2._nodes)
      logger.debug("g2 edges: %s", g2._edges)
      assert g2._edges.shape == g2._edges.shape
      assert len(g2._nodes) == len(nodes)
      assert sorted(g2._nodes.columns) == sorted(
          [g2._node, "spinglass"]
      )
  
imports: import pyarrow
  import graphistry, logging, pandas, pytest, warnings
  from graphistry.tests.common import NoAuthTestCase
  from graphistry.constants import SRC, DST, NODE
  from graphistry.plugins.igraph import SRC_IGRAPH, DST_IGRAPH, compute_algs, compute_igraph, layout_algs, layout_igraph
label_desc: Use image node_id 1 for calling the Test_igraph_usage obj's underlying member method code with example usage: obj.test_enrich_with_stat() without return types