code: def get_logger(log_path):
      """Returns a logger.
  
      Args:
          log_path (str): Path to the log file.
      """
      logger = logging.getLogger(__name__)
      logger.setLevel(logging.DEBUG)
      fh = logging.FileHandler(log_path)
      fh.setLevel(logging.DEBUG)
      fh.setFormatter(
          logging.Formatter("%(asctime)s:%(levelname)s:%(message)s")
      )
      logger.addHandler(fh)
      return logger
  
file_path: texar/examples/transformer/utils/utils.py
imports: import random
  import math
  import logging
  import numpy
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: get_logger(log_path) and returns: logger