code: def test_out_edges(self):
      G = self.K3
      assert sorted(G.out_edges()) == [
          (0, 1),
          (0, 2),
          (1, 0),
          (1, 2),
          (2, 0),
          (2, 1),
      ]
      assert sorted(G.out_edges(0)) == [(0, 1), (0, 2)]
      with pytest.raises(nx.NetworkXError):
          G.out_edges(-1)
  
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 6 for calling the BaseDiGraphTester obj's underlying member method code with example usage: obj.test_out_edges() without return types