code: def cugraph_call(G, partitions):
      df = cugraph.spectralModularityMaximizationClustering(
          G, partitions, num_eigen_vects=(partitions - 1)
      )
  
      score = cugraph.analyzeClustering_modularity(
          G, partitions, df, "vertex", "cluster"
      )
      return score
  
file_path: cugraph/python/cugraph/cugraph/tests/community/test_modularity.py
imports: import gc
  import random
  import pytest
  import networkx
  import cudf
  import cugraph
  from cugraph.testing import utils, DEFAULT_DATASETS
  from cugraph.utilities import ensure_cugraph_obj_for_nx
label_desc: Use image node_id 1 for calling a global function with example usage: cugraph_call(G, partitions) and returns: score