docs: def map_logging_verbosity(verbosity):
      '''
      Parameters
      ----------
      verbosity: int
          logging verbosity level (0-4)
  
      Returns
      -------
      A logging level as exported by `logging` module.
      By default returns logging.NOTSET
  
      Raises
      ------
      TypeError
          when `verbosity` doesn't have type int
      ValueError
          when `verbosity` is negative
      '''
      if not isinstance(verbosity, int):
          raise TypeError('Argument "verbosity" must have type int.')
  
      if not verbosity >= 0:
          raise ValueError('Argument "verbosity" must be a positive number.')
      if verbosity >= len(VERBOSITY_TO_LEVELS):
          verbosity = len(VERBOSITY_TO_LEVELS) - 1
      return VERBOSITY_TO_LEVELS.get(verbosity)