code: def test_all_pairs_shortest_path_length(self):
      l = dict(nx.all_pairs_shortest_path_length(self.cycle))
      assert l[0] == {0: 0, 1: 1, 2: 2, 3: 3, 4: 3, 5: 2, 6: 1}
      l = dict(nx.all_pairs_shortest_path_length(self.grid))
      assert l[1][16] == 6
  
file_path: networkx/networkx/algorithms/shortest_paths/tests/test_unweighted.py
imports: import pytest
  import networkx
label_desc: Use image node_id 10 for calling the TestUnweightedPath obj's underlying member method code with example usage: obj.test_all_pairs_shortest_path_length() without return types