code: def convert_to_cudf(
      cp_arrays: cp.ndarray, edge_bc: bool
  ) -> cudf.DataFrame:
      """
      create a cudf DataFrame from cupy arrays
      """
      df = cudf.DataFrame()
      if edge_bc:
          (
              cupy_src_vertices,
              cupy_dst_vertices,
              cupy_values,
              cupy_edge_ids,
          ) = cp_arrays
          df["src"] = cupy_src_vertices
          df["dst"] = cupy_dst_vertices
          df["betweenness_centrality"] = cupy_values
          if cupy_edge_ids is not None:
              df["edge_id"] = cupy_edge_ids
  
      else:
          cupy_vertices, cupy_values = cp_arrays
          df["vertex"] = cupy_vertices
          df["betweenness_centrality"] = cupy_values
      return df
  
file_path: cugraph/python/cugraph/cugraph/dask/centrality/betweenness_centrality.py
imports: from dask.distributed import wait, get_client
  from pylibcugraph import ResourceHandle, betweenness_centrality, edge_betweenness_centrality
  import cugraph.dask.comms.comms
  from cugraph.dask.common.input_utils import get_distributed_data
  import dask_cudf
  import cudf
  import cupy
  import warnings
  import dask
  from typing import Union
label_desc: Use image node_id 1 for calling a global function with example usage: convert_to_cudf(cp_arrays, edge_bc) and returns: df