code: def set_verbosity(v, force=False):
      prev_level = _global_log.threshold
      if v < 0:
          set_threshold(ERROR, force)
      elif v == 0:
          set_threshold(WARN, force)
      elif v == 1:
          set_threshold(INFO, force)
      elif v >= 2:
          set_threshold(DEBUG, force)
      return {FATAL: -2, ERROR: -1, WARN: 0, INFO: 1, DEBUG: 2}.get(
          prev_level, 1
      )
  
file_path: catboost/contrib/python/numpy/py2/numpy/distutils/log.py
imports: from __future__ import division, absolute_import, print_function
  import sys
  from distutils.log import *
  from distutils.log import Log
  from distutils.log import _global_log
label_desc: Use image node_id 3 for calling a global function with example usage: set_verbosity(v, force) and returns: dict