code: def use_solver(**kwargs):
      """
      Select default sparse direct solver to be used.
  
      Parameters
      ----------
      useUmfpack : bool, optional
          Use UMFPACK over SuperLU. Has effect only if scikits.umfpack is
          installed. Default: True
      assumeSortedIndices : bool, optional
          Allow UMFPACK to skip the step of sorting indices for a CSR/CSC matrix.
          Has effect only if useUmfpack is True and scikits.umfpack is installed.
          Default: False
  
      Notes
      -----
      The default sparse solver is umfpack when available
      (scikits.umfpack is installed). This can be changed by passing
      useUmfpack = False, which then causes the always present SuperLU
      based solver to be used.
  
      Umfpack requires a CSR/CSC matrix to have sorted column/row indices. If
      sure that the matrix fulfills this, pass ``assumeSortedIndices=True``
      to gain some speed.
  
      """
      if "useUmfpack" in kwargs:
          globals()["useUmfpack"] = kwargs["useUmfpack"]
      if useUmfpack and "assumeSortedIndices" in kwargs:
          umfpack.configure(
              assumeSortedIndices=kwargs["assumeSortedIndices"]
          )
  
file_path: catboost/contrib/python/scipy/py3/scipy/sparse/linalg/dsolve/linsolve.py
imports: from warnings import warn
  import numpy
  from numpy import asarray
  from scipy.sparse import isspmatrix_csc, isspmatrix_csr, isspmatrix, SparseEfficiencyWarning, csc_matrix, csr_matrix
  from scipy.sparse.sputils import is_pydata_spmatrix
  from scipy.linalg import LinAlgError
  import copy
  from .None import _superlu
label_desc: Use image node_id 1 for calling a global function with example usage: use_solver() without return types