code: def cugraph_call(G, min_weight, ensemble_size):
      df = cugraph.ecg(G, min_weight, ensemble_size)
      num_parts = df["partition"].max() + 1
      score = cugraph.analyzeClustering_modularity(
          G, num_parts, df, "vertex", "partition"
      )
  
      return score, num_parts
  
file_path: cugraph/python/cugraph/cugraph/tests/community/test_ecg.py
imports: import gc
  import pytest
  import networkx
  import cugraph
  from cugraph.testing import utils
  from cugraph.datasets import karate, dolphins, netscience
label_desc: Use image node_id 1 for calling a global function with example usage: cugraph_call(G, min_weight, ensemble_size) and returns: score,  num_parts