code: def test_reverse3(self):
      H = nx.DiGraph()
      H.add_nodes_from([1, 2, 3, 4])
      HR = H.reverse()
      assert sorted(HR.nodes()) == [1, 2, 3, 4]
  
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 10 for calling the TestDiGraphHistorical obj's underlying member method code with example usage: obj.test_reverse3() without return types