code: def make_info_logger(
      name: str, path: Optional[str] = None
  ) -> logging.Logger:
      """generate new logger in a standardized way for Karpiu
      Returns:
          logging.Logger: _description_
      """
      logger = logging.getLogger(name)
      logger.setLevel(logging.INFO)
      formatter = logging.Formatter(
          "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
          datefmt="%Y-%m-%d %H:%M:%S",
      )
  
      if path is None:
          ch = logging.StreamHandler()
          ch.setLevel(logging.INFO)
          ch.setFormatter(formatter)
          logger.addHandler(ch)
      else:
          fh = logging.FileHandler(path, mode="w")
          fh.setLevel(logging.INFO)
          fh.setFormatter(formatter)
          logger.addHandler(fh)
  
      return logger
  
label_desc: Use image node_id 1 for calling a global function with example usage: make_info_logger(name, path) and returns: logger