code: def csr_diag_mul(X, y, inplace=True):
      """Multiply a sparse X matrix with diagonal matrix y"""
      if not inplace:
          X = X.copy()
      # grab underlying dense ar from y
      y = y.data[0]
      X.data *= y[X.indices]
      return X
  
file_path: cuml/python/cuml/common/sparsefuncs.py
imports: import math
  import cuml
  from cuml.internals.input_utils import input_to_cuml_array, input_to_cupy_array
  from cuml.internals.memory_utils import with_cupy_rmm
  from cuml.internals.import_utils import has_scipy
  from cuml.common.kernel_utils import cuda_kernel_factory
  from cuml.internals.safe_imports import cpu_only_import
  from cuml.internals.safe_imports import gpu_only_import
  from cuml.internals.safe_imports import gpu_only_import_from
label_desc: Use image node_id 5 for calling a global function with example usage: csr_diag_mul(X, y, inplace) and returns: X