code: def set_logger_verbosity(verbosity: int, logger=None):
      if logger is None:
          logger = _logger_ag
      if verbosity < 0:
          verbosity = 0
      elif verbosity > 4:
          verbosity = 4
      logger.setLevel(verbosity2loglevel(verbosity))
  
file_path: autogluon/common/src/autogluon/common/utils/log_utils.py
imports: import logging
  from typing import Optional
label_desc: Use image node_id 2 for calling a global function with example usage: set_logger_verbosity(verbosity, logger) without return types