code: def test_edges(self):
      assert edges_equal(self.G.edges(), list(nx.edges(self.G)))
      assert sorted(self.DG.edges()) == sorted(nx.edges(self.DG))
      assert edges_equal(
          self.G.edges(nbunch=[0, 1, 3]),
          list(nx.edges(self.G, nbunch=[0, 1, 3])),
      )
      assert sorted(self.DG.edges(nbunch=[0, 1, 3])) == sorted(
          nx.edges(self.DG, nbunch=[0, 1, 3])
      )
  
imports: import random
  import pytest
  import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 3 for calling the TestFunction obj's underlying member method code with example usage: obj.test_edges() without return types