code: def get_timed_file_handler() -> TimedRotatingFileHandler:
      """Gets a timed file handler to handle logging into files.
  
      Returns:
          (TimedRotatingFileHandler): Handler to output information into timed files.
  
      """
  
      file_handler = TimedRotatingFileHandler(
          LOG_FILE, delay=True, when="midnight"
      )
      file_handler.setFormatter(FORMATTER)
  
      return file_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 2 for calling a global function with example usage: get_timed_file_handler() and returns: file_handler