code: def geterr():
      """
      Get the current way of handling floating-point errors.
  
      Returns
      -------
      res : dict
          A dictionary with keys "divide", "over", "under", and "invalid",
          whose values are from the strings "ignore", "print", "log", "warn",
          "raise", and "call". The keys represent possible floating-point
          exceptions, and the values define how these exceptions are handled.
  
      See Also
      --------
      geterrcall, seterr, seterrcall
  
      Notes
      -----
      For complete documentation of the types of floating-point exceptions and
      treatment options, see `seterr`.
  
      Examples
      --------
      >>> np.geterr()
      {'divide': 'warn', 'over': 'warn', 'under': 'ignore', 'invalid': 'warn'}
      >>> np.arange(3.) / np.arange(3.)
      array([nan,  1.,  1.])
  
      >>> oldsettings = np.seterr(all='warn', over='raise')
      >>> np.geterr()
      {'divide': 'warn', 'over': 'raise', 'under': 'warn', 'invalid': 'warn'}
      >>> np.arange(3.) / np.arange(3.)
      array([nan,  1.,  1.])
  
      """
      maskvalue = umath.geterrobj()[1]
      mask = 7
      res = {}
      val = (maskvalue >> SHIFT_DIVIDEBYZERO) & mask
      res["divide"] = _errdict_rev[val]
      val = (maskvalue >> SHIFT_OVERFLOW) & mask
      res["over"] = _errdict_rev[val]
      val = (maskvalue >> SHIFT_UNDERFLOW) & mask
      res["under"] = _errdict_rev[val]
      val = (maskvalue >> SHIFT_INVALID) & mask
      res["invalid"] = _errdict_rev[val]
      return res
  
file_path: catboost/contrib/python/numpy/py3/numpy/core/_ufunc_config.py
imports: import collections.abc
  import contextlib
  import contextvars
  from .._utils import set_module
  from .umath import UFUNC_BUFSIZE_DEFAULT, ERR_IGNORE, ERR_WARN, ERR_RAISE, ERR_CALL, ERR_PRINT, ERR_LOG, ERR_DEFAULT, SHIFT_DIVIDEBYZERO, SHIFT_OVERFLOW, SHIFT_UNDERFLOW, SHIFT_INVALID
  from .None import umath
label_desc: Use image node_id 2 for calling a global function with example usage: geterr() and returns: res