code: def test_labeled_edges(self):
      g1 = nx.Graph()
      nx.add_cycle(g1, range(3))
      g1.edges[1, 2]["attr"] = True
  
      g2 = g1.copy()
      g2.add_edge(1, 3)
      ismags = iso.ISMAGS(g2, g1, edge_match=lambda x, y: x == y)
      matches = ismags.subgraph_isomorphisms_iter(symmetry=True)
      expected_symmetric = [{0: 0, 1: 1, 2: 2}]
      assert _matches_to_sets(matches) == _matches_to_sets(
          expected_symmetric
      )
  
      matches = ismags.subgraph_isomorphisms_iter(symmetry=False)
      expected_asymmetric = [{1: 2, 0: 0, 2: 1}]
      assert _matches_to_sets(matches) == _matches_to_sets(
          expected_symmetric + expected_asymmetric
      )
  
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 4 for calling the TestSubgraphIsomorphism obj's underlying member method code with example usage: obj.test_labeled_edges() without return types