code: def test_out_degree(self):
      G = self.G()
      G.add_nodes_from("GJK")
      G.add_edges_from(
          [("A", "B"), ("A", "C"), ("B", "D"), ("B", "C"), ("C", "D")]
      )
      assert sorted(v for k, v in G.in_degree()) == [
          0,
          0,
          0,
          0,
          1,
          2,
          2,
      ]
      assert dict(G.out_degree()) == {
          "A": 2,
          "C": 1,
          "B": 2,
          "D": 0,
          "G": 0,
          "K": 0,
          "J": 0,
      }
  
file_path: networkx/networkx/classes/tests/test_digraph_historical.py
imports: import pytest
  import networkx
  import networkx
  from .historical_tests import HistoricalTests
label_desc: Use image node_id 3 for calling the TestDiGraphHistorical obj's underlying member method code with example usage: obj.test_out_degree() without return types