code: def test_cutoff_parameter():
      G = nx.circular_ladder_graph(4)
  
      # No aggregation:
      expected = [{k} for k in range(8)]
      assert greedy_modularity_communities(G, cutoff=8) == expected
  
      # Aggregation to half order (number of nodes)
      expected = [{k, k + 1} for k in range(0, 8, 2)]
      assert greedy_modularity_communities(G, cutoff=4) == expected
  
      # Default aggregation case (here, 2 communities emerge)
      expected = [frozenset(range(4)), frozenset(range(4, 8))]
      assert greedy_modularity_communities(G, cutoff=1) == expected
  
file_path: networkx/networkx/algorithms/community/tests/test_modularity_max.py
imports: import pytest
  import networkx
  from networkx.algorithms.community import greedy_modularity_communities, naive_greedy_modularity_communities
label_desc: Use image node_id 14 for calling a global function with example usage: test_cutoff_parameter() without return types