code: def _to_cudf(arr):
      if arr.ndim == 2:
          return cudf.DataFrame(arr)
      elif arr.ndim == 1:
          return cudf.Series(arr)
  
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 6 for calling a global function with example usage: _to_cudf(arr) and returns: cudf, cudf