code: def to_dask_cudf(dask_arr, client=None):
      client = default_client() if client is None else client
  
      elms = [_to_cudf(dp) for dp in dask_arr.to_delayed().flatten()]
      dfs = client.compute(elms)
  
      meta = client.submit(_get_meta, dfs[0])
      meta_local = meta.result()
  
      return dd.from_delayed(dfs, meta=meta_local)
  
file_path: cuml/python/cuml/dask/common/dask_arr_utils.py
imports: from cuml.common import rmm_cupy_ary, has_scipy
  from cuml.dask.common.part_utils import _extract_partitions
  from dask.distributed import default_client
  from cuml.dask.common.dask_df_utils import to_dask_cudf
  from cuml.internals.memory_utils import with_cupy_rmm
  import dask.dataframe
  import dask
  from cuml.internals.safe_imports import gpu_only_import
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 7 for calling a global function with example usage: to_dask_cudf(dask_arr, client) and returns: dd