code: def convert_to_cudf(cp_arrays):
      """
      Creates a cudf DataFrame from cupy arrays from pylibcugraph wrapper
      """
      cupy_vertex, cupy_labels = cp_arrays
      df = cudf.DataFrame()
      df["vertex"] = cupy_vertex
      df["labels"] = cupy_labels
  
      return df
  
file_path: cugraph/python/cugraph/cugraph/dask/components/connectivity.py
imports: from dask.distributed import wait, default_client
  import cugraph.dask.comms.comms
  import dask_cudf
  import cudf
  from pylibcugraph import ResourceHandle
  from pylibcugraph import weakly_connected_components
label_desc: Use image node_id 1 for calling a global function with example usage: convert_to_cudf(cp_arrays) and returns: df