code: def initializeFolders() -> None:
      """
      Initialize required folders
      """
      sys.path.append("..")
      pathlib.Path("outputs").mkdir(parents=True, exist_ok=True)
      pathlib.Path("outputs/data").mkdir(parents=True, exist_ok=True)
      pathlib.Path("outputs/rules").mkdir(parents=True, exist_ok=True)
  
      # -----------------------------------
  
      # clear existing rules in outputs/
  
      outputs_path = os.getcwd() + os.path.sep + "outputs" + os.path.sep
  
      try:
          if path.exists(outputs_path + "data"):
              for file in os.listdir(outputs_path + "data"):
                  os.remove(outputs_path + "data" + os.path.sep + file)
  
          if path.exists(outputs_path + "rules"):
              for file in os.listdir(outputs_path + "rules"):
                  if (
                      ".py" in file
                      or ".json" in file
                      or ".txt" in file
                      or ".pkl" in file
                      or ".csv" in file
                  ):
                      os.remove(
                          outputs_path + "rules" + os.path.sep + file
                      )
      except Exception as err:
          logger.warn(str(err))
  
imports: import pathlib
  import os
  import sys
  from os import path
  from types import ModuleType
  import multiprocessing
  from typing import Optional, Union
  import numpy
  import pandas
  from chefboost import Chefboost
  from chefboost.commons.logger import Logger
  from chefboost.commons.module import load_module
label_desc: Use image node_id 8 for calling a global function with example usage: initializeFolders() without return types