code: def convert_to_cudf(
      result: cp.ndarray,
  ) -> Tuple[cudf.DataFrame, float]:
      """
      Creates a cudf DataFrame from cupy arrays from pylibcugraph wrapper
      """
      cupy_vertex, cupy_partition, modularity = result
      df = cudf.DataFrame()
      df["vertex"] = cupy_vertex
      df["partition"] = cupy_partition
  
      return df, modularity
  
file_path: cugraph/python/cugraph/cugraph/dask/community/louvain.py
imports: from __future__ import annotations
  from dask.distributed import wait, default_client
  import cugraph.dask.comms.comms
  import dask_cudf
  import dask
  from dask import delayed
  import cudf
  import cupy
  import numpy
  from pylibcugraph import ResourceHandle
  from pylibcugraph import louvain
  from typing import Tuple, TYPE_CHECKING
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: convert_to_cudf(result) and returns: df,  modularity