code: def test_convert_index(input_type):
      rand_func = (
          cupyx.scipy.sparse if input_type == "cupy" else scipy_sparse
      )
  
      X = rand_func.random(
          100, 100, format="csr", density=0.5, dtype=cp.float64
      )
  
      # Will convert to 32-bit by default
      X.indptr = X.indptr.astype(cp.int64)
      X.indices = X.indices.astype(cp.int64)
  
      X_m = SparseCumlArray(X)
  
      assert X_m.indptr.dtype == cp.int32
      assert X_m.indices.dtype == cp.int32
  
      X_m = SparseCumlArray(X, convert_index=cp.int64)
  
      assert X_m.indptr.dtype == cp.int64
      assert X_m.indices.dtype == cp.int64
  
file_path: cuml/python/cuml/tests/test_array_sparse.py
imports: from cuml.internals.safe_imports import gpu_only_import
  import pytest
  from cuml.internals.array import CumlArray
  from cuml.internals.array_sparse import SparseCumlArray
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 4 for calling a global function with example usage: test_convert_index(input_type) without return types