code: def set_threshold(level):
      # return the old threshold for use from tests
      old = _global_log.threshold
      _global_log.threshold = level
      return old
  
file_path: catboost/contrib/tools/python3/src/Lib/distutils/log.py
imports: import sys
label_desc: Use image node_id 1 for calling a global function with example usage: set_threshold(level) and returns: old