code: def setbufsize(size):
      """
      Set the size of the buffer used in ufuncs.
  
      Parameters
      ----------
      size : int
          Size of buffer.
  
      """
      if size > 10e6:
          raise ValueError("Buffer size, %s, is too big." % size)
      if size < 5:
          raise ValueError("Buffer size, %s, is too small." % size)
      if size % 16 != 0:
          raise ValueError(
              "Buffer size, %s, is not a multiple of 16." % size
          )
  
      pyvals = umath.geterrobj()
      old = getbufsize()
      pyvals[0] = size
      umath.seterrobj(pyvals)
      return old
  
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 3 for calling a global function with example usage: setbufsize(size) and returns: old