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)]
      pytest.raises((KeyError, nx.NetworkXError), G.out_edges, -1)
      assert sorted(G.out_edges(0, keys=True)) == [(0, 1, 0), (0, 2, 0)]
  
imports: from collections import UserDict
  import pytest
  import networkx
  from networkx.utils import edges_equal
  from .test_multigraph import BaseMultiGraphTester
  from .test_multigraph import TestEdgeSubgraph
  from .test_multigraph import TestMultiGraph
label_desc: Use image node_id 4 for calling the BaseMultiDiGraphTester obj's underlying member method code with example usage: obj.test_out_edges() without return types