code: def networkx_call(M):
      # z = {k: 1.0/M.shape[0] for k in range(M.shape[0])}
      Gnx = nx.from_pandas_edgelist(
          M,
          source="0",
          target="1",
          edge_attr="weight",
          create_using=nx.Graph(),
      )
      # Networkx louvain Call
      print("Solving... ")
      t1 = time.time()
      parts = community.best_partition(Gnx)
      t2 = time.time() - t1
  
      print("Networkx Time : " + str(t2))
      return parts
  
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 3 for calling a global function with example usage: networkx_call(M) and returns: parts