code: def test_average_path_graph():
      G = nx.path_graph(4)
      assert bipartite.average_clustering(G, mode="dot") == 0.5
      assert bipartite.average_clustering(G, mode="max") == 0.5
      assert bipartite.average_clustering(G, mode="min") == 1
  
file_path: networkx/networkx/algorithms/bipartite/tests/test_cluster.py
imports: import pytest
  import networkx
  from networkx.algorithms import bipartite
  from networkx.algorithms.bipartite.cluster import cc_dot, cc_max, cc_min
label_desc: Use image node_id 6 for calling a global function with example usage: test_average_path_graph() without return types