code: def get_console_handler() -> StreamHandler:
      """Gets a console handler to handle logging into console.
  
      Returns:
          (StreamHandler): Handler to output information into console.
  
      """
  
      console_handler = StreamHandler(sys.stdout)
      console_handler.setFormatter(FORMATTER)
  
      return console_handler
  
file_path: opytimizer/opytimizer/utils/logging.py
imports: import logging
  import sys
  from logging import StreamHandler
  from logging.handlers import TimedRotatingFileHandler
label_desc: Use image node_id 1 for calling a global function with example usage: get_console_handler() and returns: console_handler