code: def test_cycle(self):
      path, dist = nx.floyd_warshall_predecessor_and_distance(
          nx.cycle_graph(7)
      )
      assert dist[0][3] == 3
      assert path[0][3] == 2
      assert dist[0][4] == 3
  
file_path: networkx/networkx/algorithms/shortest_paths/tests/test_dense.py
imports: import pytest
  import networkx
label_desc: Use image node_id 4 for calling the TestFloyd obj's underlying member method code with example usage: obj.test_cycle() without return types