code: def test_iter(self):
      expected = sorted(self.DG.edges)
      assert sorted(self.uv.edges) == expected
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 6 for calling the TestToUndirected obj's underlying member method code with example usage: obj.test_iter() without return types