code: def init_logging(level=None, formats=None):
      level = _log_level_for_arg(level)
      _preempt_logging_mods()
      console_handler = {
          "class": "guild.log.ConsoleLogHandler",
          "formats": formats,
      }
      logging.config.dictConfig(
          {
              "version": 1,
              "handlers": {"console": console_handler},
              "root": {"level": level, "handlers": ["console"]},
              "disable_existing_loggers": False,
          }
      )
      globals()["__last_init_kw"] = {"level": level, "formats": formats}
  
imports: import logging
  import logging.config
  import os
  import sys
  from guild import ansi_util
label_desc: Use image node_id 1 for calling a global function with example usage: init_logging(level, formats) without return types