code: def cudify(d):
      if d is None:
          return None
  
      k = np.fromiter(d.keys(), dtype="int32")
      v = np.fromiter(d.values(), dtype="float32")
      cuD = cudf.DataFrame({"vertex": k, "values": v})
      return cuD
  
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 1 for calling a global function with example usage: cudify(d) and returns: cuD, None