code: def set_level(level):
      global _logger, LOG_DIR
      # To set level, need create new handler
      if LOG_DIR is not None:
          set_dir(get_dir())
      _logger.setLevel(level)
  
imports: import errno
  import logging
  import os
  import os.path
  import sys
  from termcolor import colored
  import shutil
  from datetime import datetime
label_desc: Use image node_id 5 for calling a global function with example usage: set_level(level) without return types