code: def set_logger(debug_enabled: bool) -> None:
      root = logging.getLogger()
      root.setLevel(logging.DEBUG if debug_enabled else logging.INFO)
  
      for hdlr in root.handlers:
          root.removeHandler(hdlr)
  
      handler = logging.StreamHandler(sys.stdout)
      handler.setLevel(logging.DEBUG if debug_enabled else logging.INFO)
      formatter = logging.Formatter(det.LOG_FORMAT)
      handler.setFormatter(formatter)
      root.addHandler(handler)
  
label_desc: Use image node_id 1 for calling a global function with example usage: set_logger(debug_enabled) without return types