code: def convert_to_cudf(cp_arrays):
      """
      create a cudf DataFrame from cupy arrays
      """
      cupy_distances, cupy_predecessors, cupy_vertices = cp_arrays
      df = cudf.DataFrame()
      df["vertex"] = cupy_vertices
      df["distance"] = cupy_distances
      df["predecessor"] = cupy_predecessors
      return df
  
file_path: cugraph/python/cugraph/cugraph/dask/traversal/bfs.py
imports: from pylibcugraph import ResourceHandle, bfs
  from dask.distributed import wait, default_client
  from cugraph.dask.common.part_utils import persist_dask_df_equal_parts_per_worker
  import cugraph.dask.comms.comms
  import cudf
  import dask_cudf
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: convert_to_cudf(cp_arrays) and returns: df