code: def test_richclub():
      G = nx.Graph([(0, 1), (0, 2), (1, 2), (1, 3), (1, 4), (4, 5)])
      rc = nx.richclub.rich_club_coefficient(G, normalized=False)
      assert rc == {0: 12.0 / 30, 1: 8.0 / 12}
  
      # test single value
      rc0 = nx.richclub.rich_club_coefficient(G, normalized=False)[0]
      assert rc0 == 12.0 / 30.0
  
file_path: networkx/networkx/algorithms/tests/test_richclub.py
imports: import pytest
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: test_richclub() without return types