code: def get_logger(file_path):
      """Make python logger"""
      log_format = "%(asctime)s | %(message)s"
      logging.basicConfig(
          stream=sys.stdout,
          level=logging.INFO,
          format=log_format,
          datefmt="%m/%d %I:%M:%S %p",
      )
      logger = logging.getLogger("")
  
      formatter = logging.Formatter(
          log_format, datefmt="%m/%d %I:%M:%S %p"
      )
      file_handler = logging.FileHandler(file_path)
      file_handler.setFormatter(formatter)
  
      logger.addHandler(file_handler)
  
      return logger
  
file_path: nni/examples/nas/legacy/cream/lib/utils/util.py
imports: import sys
  import logging
  import torch
  import argparse
  import torch.nn
  from torch import optim
  from thop import profile, clever_format
  from timm.utils import *
  from lib.config import cfg
label_desc: Use image node_id 2 for calling a global function with example usage: get_logger(file_path) and returns: logger