code: def create_cp_sparse_ar_from_dense_np_ar(ar, dtype=np.float32):
      """
      Creates a gpu array from a dense cpu array
      """
      return cp_csr_matrix(scipy_csr_matrix(ar), dtype=dtype)
  
file_path: cuml/python/cuml/tests/dask/test_dask_tfidf.py
imports: from sklearn.feature_extraction.text import TfidfTransformer
  from cuml.dask.feature_extraction.text import TfidfTransformer
  import dask
  import dask.array
  from cuml.internals.safe_imports import gpu_only_import_from
  from cuml.internals.safe_imports import cpu_only_import_from
  from cuml.internals.safe_imports import gpu_only_import
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 2 for calling a global function with example usage: create_cp_sparse_ar_from_dense_np_ar(ar, dtype) and returns: cp_csr_matrix