code: def _get_logger():
      log = logging.getLogger("__name__")
      log.setLevel(logging.INFO)
      console_handle = logging.StreamHandler(sys.stdout)
      node_name = os.getenv("NODE_NAME", str(bmt.rank()))
      console_handle.setFormatter(
          logging.Formatter(
              "[%(levelname)s][%(asctime)s][{}][%(filename)s:%(lineno)d:%(process)d] - %(message)s".format(
                  node_name
              ),
              datefmt="%Y-%m-%d %H:%M:%S",
          )
      )
      log.addHandler(console_handle)
      return log
  
file_path: DeepKE/example/llm/CPM-Bee/src/cpm_live/utils/log.py
imports: import os
  import sys
  from typing import Any, Dict, Optional, Tuple, Union
  import datetime
  import json
  import logging
  import bmtrain
label_desc: Use image node_id 1 for calling a global function with example usage: _get_logger() and returns: log