code: def _to_dask_cudf(futures, client=None):
      """
      Convert a list of futures containing cudf Dataframes into a Dask.Dataframe
      :param futures: list[cudf.Dataframe] list of futures containing dataframes
      :param client: dask.distributed.Client Optional client to use
      :return: dask.Dataframe a dask.Dataframe
      """
      c = default_client() if client is None else client
      # Convert a list of futures containing dfs back into a dask_cudf
      dfs = [d for d in futures if d.type != type(None)]  # NOQA
      if logger.should_log_for(logger.level_debug):
          logger.debug("to_dask_cudf dfs=%s" % str(dfs))
      meta_future = c.submit(_get_meta, dfs[0], pure=False)
      meta = meta_future.result()
      return dd.from_delayed(dfs, meta=meta)
  
imports: import dask.dataframe
  from functools import reduce
  from toolz import first
  from dask.distributed import default_client
  from dask.distributed import wait
  from cuml.dask.common.part_utils import _extract_partitions
  from cuml.dask.common.dask_arr_utils import validate_dask_array
  from cuml.dask.common.dask_df_utils import to_dask_cudf
  from cuml.dask.common.utils import get_client
  from dask_cudf.core import Series
  from dask.dataframe import Series
  from dask.dataframe import DataFrame
  from cudf import Series
  from cuml.internals.safe_imports import gpu_only_import_from
  from collections import OrderedDict
  from cuml.internals.memory_utils import with_cupy_rmm
  from collections.abc import Sequence
  import dask.array
  from cuml.internals.safe_imports import cpu_only_import
  import cuml.internals.logger
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 5 for calling a global function with example usage: _to_dask_cudf(futures, client) and returns: dd