code: def test_wiener_index_of_disconnected_graph():
      assert nx.wiener_index(nx.empty_graph(2)) == float("inf")
  
file_path: networkx/networkx/algorithms/tests/test_wiener.py
imports: import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: test_wiener_index_of_disconnected_graph() without return types