code: def test_isomorphism(self):
      g1 = nx.Graph()
      nx.add_cycle(g1, range(4))
  
      g2 = nx.Graph()
      nx.add_cycle(g2, range(4))
      g2.add_edges_from(list(zip(g2, range(4, 8))))
      ismags = iso.ISMAGS(g2, g1)
      assert list(ismags.subgraph_isomorphisms_iter(symmetry=True)) == [
          {n: n for n in g1.nodes}
      ]
  
file_path: networkx/networkx/algorithms/isomorphism/tests/test_ismags.py
imports: import pytest
  import networkx
  from networkx.algorithms import isomorphism
label_desc: Use image node_id 1 for calling the TestSubgraphIsomorphism obj's underlying member method code with example usage: obj.test_isomorphism() without return types