code: def create_cudf_series_from_node_ar(node_ar):
      if type(node_ar).__name__ == "PyCapsule":
          return cudf.from_dlpack(node_ar)
      else:
          return cudf.Series(node_ar)
  
file_path: cugraph/python/cugraph/cugraph/gnn/dgl_extensions/utils/sampling.py
imports: import cugraph
  import cudf
  import cupy
  import dask_cudf
label_desc: Use image node_id 9 for calling a global function with example usage: create_cudf_series_from_node_ar(node_ar) and returns: cudf, cudf