code: def test_reverse(self):
      G = nx.complete_graph(10)
      H = G.to_directed()
      HR = H.reverse()
      assert nx.is_isomorphic(H, HR)
      assert sorted(H.edges()) == sorted(HR.edges())
  
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 8 for calling the TestDiGraphHistorical obj's underlying member method code with example usage: obj.test_reverse() without return types