code: def test_star_graph():
      G = nx.star_graph(3)
      # all modes are the same
      answer = {0: 0, 1: 1, 2: 1, 3: 1}
      assert bipartite.clustering(G, mode="dot") == answer
      assert bipartite.clustering(G, mode="min") == answer
      assert bipartite.clustering(G, mode="max") == 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 2 for calling a global function with example usage: test_star_graph() without return types