code: def test_path_graph():
      G = nx.path_graph(4)
      answer = {0: 0.5, 1: 0.5, 2: 0.5, 3: 0.5}
      assert bipartite.clustering(G, mode="dot") == answer
      assert bipartite.clustering(G, mode="max") == answer
      answer = {0: 1, 1: 1, 2: 1, 3: 1}
      assert bipartite.clustering(G, mode="min") == answer
  
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 5 for calling a global function with example usage: test_path_graph() without return types