code: def init_logger() -> None:
      """
      Initialize the logger. Log to stdout by default.
      """
      global _logger_init
      if _logger_init:
          return
  
      logger = logging.getLogger("nni_amlt")
      logger.setLevel(level=logging.INFO)
      add_handler(logger)
  
      _logger_init = True
  
file_path: nni/nni/contrib/training_service/utils.py
imports: from __future__ import annotations
  import logging
  import signal
  import sys
  import time
  from pathlib import Path
  from subprocess import Popen, PIPE
label_desc: Use image node_id 3 for calling a global function with example usage: init_logger() without return types