code: def test_all_pairs_dijkstra_path(self):
      cycle = nx.cycle_graph(7)
      p = dict(nx.all_pairs_dijkstra_path(cycle))
      assert p[0][3] == [0, 1, 2, 3]
  
      cycle[1][2]["weight"] = 10
      p = dict(nx.all_pairs_dijkstra_path(cycle))
      assert p[0][3] == [0, 6, 5, 4, 3]
  
imports: import pytest
  import networkx
  from networkx.utils import pairwise
label_desc: Use image node_id 16 for calling the TestWeightedPath obj's underlying member method code with example usage: obj.test_all_pairs_dijkstra_path() without return types