code: def sparse_scipy_to_cp(sp, dtype):
      """
      Convert object of scipy.sparse to
      cupyx.scipy.sparse.coo_matrix
      """
  
      coo = sp.tocoo()
      values = coo.data
  
      r = cp.asarray(coo.row)
      c = cp.asarray(coo.col)
      v = cp.asarray(values, dtype=dtype)
  
      return cupyx.scipy.sparse.coo_matrix((v, (r, c)), sp.shape)
  
file_path: cuml/python/cuml/internals/input_utils.py
imports: from collections import namedtuple
  from cuml.internals.array import CumlArray
  from cuml.internals.array_sparse import SparseCumlArray
  from cuml.internals.global_settings import GlobalSettings
  from cuml.internals.mem_type import MemoryType
  from cuml.internals.safe_imports import cpu_only_import, cpu_only_import_from, gpu_only_import, gpu_only_import_from, safe_import, safe_import_from, null_decorator, return_false, UnavailableError
label_desc: Use image node_id 12 for calling a global function with example usage: sparse_scipy_to_cp(sp, dtype) and returns: cupyx