code: def test_all_pairs_shortest_path(self):
      p = dict(nx.all_pairs_shortest_path(self.cycle))
      assert p[0][3] == [0, 1, 2, 3]
      p = dict(nx.all_pairs_shortest_path(self.grid))
      validate_grid_path(4, 4, 1, 12, p[1][12])
  
file_path: networkx/networkx/algorithms/shortest_paths/tests/test_unweighted.py
imports: import pytest
  import networkx
label_desc: Use image node_id 9 for calling the TestUnweightedPath obj's underlying member method code with example usage: obj.test_all_pairs_shortest_path() without return types