code: def test_edges_data(self):
      G = self.K3
      all_edges = [
          (0, 1, {}),
          (0, 2, {}),
          (1, 0, {}),
          (1, 2, {}),
          (2, 0, {}),
          (2, 1, {}),
      ]
      assert sorted(G.edges(data=True)) == all_edges
      assert sorted(G.edges(0, data=True)) == all_edges[:2]
      assert sorted(G.edges([0, 1], data=True)) == all_edges[:4]
      with pytest.raises(nx.NetworkXError):
          G.edges(-1, True)
  
imports: import pytest
  import networkx
  from networkx.utils import nodes_equal
  from .test_graph import BaseAttrGraphTester, BaseGraphTester
  from .test_graph import TestEdgeSubgraph
  from .test_graph import TestGraph
label_desc: Use image node_id 1 for calling the BaseAttrDiGraphTester obj's underlying member method code with example usage: obj.test_edges_data() without return types