code: def test_wiener_index_of_complete_graph():
      n = 10
      G = nx.complete_graph(n)
      assert nx.wiener_index(G) == (n * (n - 1) / 2)
  
file_path: networkx/networkx/algorithms/tests/test_wiener.py
imports: import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: test_wiener_index_of_complete_graph() without return types