code: def prepare_steps_logger():
      print("Redirecting logging to {}.".format(LOGS_PATH))
      remove_logs()
      logger = logging.getLogger("steps")
      for h in logger.handlers:
          logger.removeHandler(h)
      message_format = logging.Formatter(
          fmt="%(asctime)s %(name)s >>> %(message)s",
          datefmt="%Y-%m-%d %H:%M:%S",
      )
      fh = logging.FileHandler(LOGS_PATH)
      fh.setLevel(logging.INFO)
      fh.setFormatter(fmt=message_format)
      logger.addHandler(fh)
  
imports: import logging
  import os
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_steps_logger() without return types