code: def test_degree_digraph(self):
      H = nx.DiGraph()
      H.add_edges_from([(1, 24), (1, 2)])
      assert sorted(d for n, d in H.in_degree([1, 24])) == [0, 1]
      assert sorted(d for n, d in H.out_degree([1, 24])) == [0, 2]
      assert sorted(d for n, d in H.degree([1, 24])) == [1, 2]
  
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 4 for calling the TestDiGraphHistorical obj's underlying member method code with example usage: obj.test_degree_digraph() without return types