code: def test_reverse2(self):
      H = nx.DiGraph()
      foo = [H.add_edge(u, u + 1) for u in range(5)]
      HR = H.reverse()
      for u in range(5):
          assert HR.has_edge(u + 1, u)
  
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 9 for calling the TestDiGraphHistorical obj's underlying member method code with example usage: obj.test_reverse2() without return types