code: def test_bfs_edges_reverse(self):
      D = nx.DiGraph()
      D.add_edges_from([(0, 1), (1, 2), (1, 3), (2, 4), (3, 4)])
      edges = nx.bfs_edges(D, source=4, reverse=True)
      assert list(edges) == [(4, 2), (4, 3), (2, 1), (1, 0)]
  
imports: from functools import partial
  import pytest
  import networkx
label_desc: Use image node_id 6 for calling the TestBFS obj's underlying member method code with example usage: obj.test_bfs_edges_reverse() without return types