code: def test_chain_serialization_edge():
      o = Chain([e(edge_query="zzz", name="abc")]).to_json()
      d = Chain.from_json(o)
      assert isinstance(d.chain[0], ASTEdge)
      assert d.chain[0].edge_query == "zzz"
      assert d.chain[0]._name == "abc"
      o2 = d.to_json()
      assert o == o2
  
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 3 for calling a global function with example usage: test_chain_serialization_edge() without return types