code: def _check_info(
      info, driver, positive="did not converge (LAPACK info=%d)"
  ):
      """Check info return value."""
      if info < 0:
          raise ValueError(
              "illegal value in argument %d of internal %s"
              % (-info, driver)
          )
      if info > 0 and positive:
          raise LinAlgError(
              ("%s " + positive)
              % (
                  driver,
                  info,
              )
          )
  
imports: import warnings
  import numpy
  from numpy import array, isfinite, inexact, nonzero, iscomplexobj, flatnonzero, conj, asarray, argsort, empty, iscomplex, zeros, einsum, eye, inf
  from scipy._lib._util import _asarray_validated
  from ._misc import LinAlgError, _datacopied, norm
  from .lapack import get_lapack_funcs, _compute_lwork
  from scipy._lib.deprecation import _NoValue, _deprecate_positional_args
label_desc: Use image node_id 13 for calling a global function with example usage: _check_info(info, driver, positive) without return types