code: def _getlogger():
      logger = logging.getLogger("PARL")
      logger.propagate = False
      logger.setLevel(logging.DEBUG)
  
      if "DEBUG" in os.environ:
          handler = logging.FileHandler("parl_debug.log")
          handler.setFormatter(_Formatter(datefmt="%m-%d %H:%M:%S"))
          logger.addHandler(handler)
          return logger
  
      handler = logging.StreamHandler(sys.stdout)
      handler.setFormatter(_Formatter(datefmt="%m-%d %H:%M:%S"))
      logger.addHandler(handler)
      return logger
  
imports: import errno
  import logging
  import os
  import os.path
  import sys
  from termcolor import colored
  import shutil
  from datetime import datetime
label_desc: Use image node_id 3 for calling a global function with example usage: _getlogger() and returns: logger, logger