code: def init_logger() -> logging.Logger:
      logger = logging.getLogger(__name__)
      level = logging.INFO
      logger.setLevel(level)
      console = logging.StreamHandler()
      formatter = logging.Formatter(
          "%(asctime)s %(filename)s:%(lineno)s %(levelname)s p:%(processName)s t:%(threadName)s: %(message)s"
      )
      console.setFormatter(formatter)
      console.setLevel(level)
      logger.addHandler(console)
      logger.propagate = False
      return logger
  
imports: import dataclasses
  import logging
  from typing import Dict, List
  from torch.distributed.checkpoint.metadata import MetadataIndex
  from torch.distributed.checkpoint.planner import SavePlan
label_desc: Use image node_id 1 for calling a global function with example usage: init_logger() and returns: logger