code: def test_nonsparse_input_fails():
      X = cp.random.random((100, 100))
  
      with pytest.raises(ValueError):
          SparseCumlArray(X)
  
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 2 for calling a global function with example usage: test_nonsparse_input_fails() without return types