code: def networkx_call(
      Gnx, max_iter, tol, alpha, personalization_perc, nnz_vtx
  ):
      personalization = None
      if personalization_perc != 0:
          personalization = {}
          personalization_count = int(
              (nnz_vtx.size * personalization_perc) / 100.0
          )
          nnz_vtx = np.random.choice(
              nnz_vtx,
              min(nnz_vtx.size, personalization_count),
              replace=False,
          )
  
          nnz_val = np.random.random(nnz_vtx.size)
          nnz_val = nnz_val / sum(nnz_val)
          for vtx, val in zip(nnz_vtx, nnz_val):
              personalization[vtx] = val
  
      z = {k: 1.0 / Gnx.number_of_nodes() for k in Gnx.nodes()}
  
      # Networkx Pagerank Call
      t1 = time.time()
  
      pr = nx.pagerank(
          Gnx,
          alpha=alpha,
          nstart=z,
          max_iter=max_iter * 2,
          tol=tol * 0.01,
          personalization=personalization,
      )
      t2 = time.time() - t1
  
      print("Networkx Time : " + str(t2))
  
      return pr, personalization
  
file_path: cugraph/python/cugraph/cugraph/tests/link_analysis/test_pagerank.py
imports: import gc
  import time
  import pytest
  import numpy
  import networkx
  import cudf
  import cugraph
  from cugraph.testing import utils, DEFAULT_DATASETS
  from cugraph.datasets import karate
label_desc: Use image node_id 4 for calling a global function with example usage: networkx_call(Gnx, max_iter, tol, alpha, personalization_perc, nnz_vtx) and returns: pr,  personalization