code: def _get_time_file_hdlr(config):
      time_rotating_handler = logging.handlers.TimedRotatingFileHandler(
          filename=config.filename,
          when=config.rotate_when,
          interval=config.rotate_interval,
          backupCount=config.backup_count,
          utc=config.utc,
          encoding="utf-8",
          delay=True,
      )
  
      time_rotating_handler.setFormatter(formatter)
      time_rotating_handler.setLevel(config.file_level)
      time_rotating_handler.set_name("time_rotating_file")
  
      return time_rotating_handler
  
imports: import logging
  from towhee.config.log_config import LogConfig
label_desc: Use image node_id 1 for calling a global function with example usage: _get_time_file_hdlr(config) and returns: time_rotating_handler