code: def _insert_zeros(ary, zero_indices):
      """
      Create a new array of len(ary + zero_indices) where zero_indices
      indicates indexes of 0s in the new array. Ary is used to fill the rest.
  
      Examples
      --------
          _insert_zeros([1, 2, 3], [1, 3]) => [1, 0, 2, 0, 3]
      """
      if len(zero_indices) == 0:
          return ary.values
  
      new_ary = cp.zeros((len(ary) + len(zero_indices)), dtype=cp.int32)
  
      # getting mask of non-zeros
      data_mask = ~cp.in1d(
          cp.arange(0, len(new_ary), dtype=cp.int32), zero_indices
      )
  
      new_ary[data_mask] = ary
      return new_ary
  
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 7 for calling a global function with example usage: _insert_zeros(ary, zero_indices) and returns: new_ary, ary