code: def cugraph_call(graph_file, edgevals=False, directed=False):
      G = graph_file.get_graph(
          create_using=cugraph.Graph(directed=directed),
          ignore_weights=not edgevals,
      )
      # cugraph Louvain Call
      t1 = time.time()
      parts, mod = cugraph.louvain(G)
      t2 = time.time() - t1
      print("Cugraph Time : " + str(t2))
  
      return parts, mod
  
file_path: cugraph/python/cugraph/cugraph/tests/community/test_louvain.py
imports: import gc
  import time
  import pytest
  import networkx
  import cugraph
  import cupyx
  import cudf
  from cugraph.testing import utils, UNDIRECTED_DATASETS
  from cugraph.datasets import karate_asymmetric
label_desc: Use image node_id 2 for calling a global function with example usage: cugraph_call(graph_file, edgevals, directed) and returns: parts,  mod