code: def set_logger(context, verbose=False):
      """Return colored logger with specified context name and debug=verbose"""
      if os.name == "nt":  # for Windows
          return NTLogger(context, verbose)
  
      # Remove all handlers associated with the root logger object.
      for handler in logging.root.handlers[:]:
          logging.root.removeHandler(handler)
  
      logger = logging.getLogger(context)
      logger.propagate = False
      if not logger.handlers:
          logger.setLevel(logging.DEBUG if verbose else logging.INFO)
          formatter = ColoredFormatter(
              "%(levelname)-.1s:"
              + context
              + ":[%(filename).3s:%(funcName).3s:%(lineno)3d]:%(message)s",
              datefmt="%m-%d %H:%M:%S",
          )
          console_handler = logging.StreamHandler()
          console_handler.setLevel(
              logging.DEBUG if verbose else logging.INFO
          )
          console_handler.setFormatter(formatter)
          logger.handlers = []
          logger.addHandler(console_handler)
  
      return logger
  
file_path: nboost/nboost/logger.py
imports: import termcolor
  import logging
  import copy
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: set_logger(context, verbose) and returns: logger, NTLogger