code: def test_out_degree(self):
      G = self.K3
      assert sorted(G.out_degree()) == [(0, 2), (1, 2), (2, 2)]
      assert dict(G.out_degree()) == {0: 2, 1: 2, 2: 2}
      assert G.out_degree(0) == 2
      assert list(G.out_degree(iter([0]))) == [(0, 2)]
  
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 13 for calling the BaseDiGraphTester obj's underlying member method code with example usage: obj.test_out_degree() without return types