code: def test_benchmark_ClusterGCN_generator(benchmark, q):
      G = example_graph_random(
          feature_size=10, n_nodes=1000, n_edges=5000
      )
  
      generator = ClusterNodeGenerator(G, clusters=10, q=q)
      seq = generator.flow(G.nodes())
  
      # iterate over all the batches
      benchmark(lambda: list(seq))
  
file_path: stellargraph/tests/mapper/test_cluster_gcn_node_mapper.py
imports: from stellargraph.mapper import ClusterNodeGenerator, ClusterNodeSequence
  from stellargraph.core.graph import StellarGraph
  import pandas
  import numpy
  import pytest
  from ..test_utils.graphs import example_graph_random
label_desc: Use image node_id 7 for calling a global function with example usage: test_benchmark_ClusterGCN_generator(benchmark, q) without return types