code: def _raise_typeerror(X):
      """Raises a TypeError if X is not a CSR or CSC matrix"""
      input_type = X.format if issparse(X) else type(X)
      err = "Expected a CSR or CSC sparse matrix, got %s." % input_type
      raise TypeError(err)
  
file_path: cuml/python/cuml/_thirdparty/sklearn/utils/sparsefuncs.py
imports: from ....thirdparty_adapters.sparsefuncs_fast import csr_mean_variance_axis0, csc_mean_variance_axis0
  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
  from cuml.internals.safe_imports import cpu_only_import_from
label_desc: Use image node_id 4 for calling a global function with example usage: _raise_typeerror(X) without return types