code: def get_logger(exp_dir):
      """
      creates logger instance. writing out info to file and to terminal.
      :param exp_dir: experiment directory, where exec.log file is stored.
      :return: logger instance.
      """
  
      logger = logging.getLogger("medicaldetectiontoolkit")
      logger.setLevel(logging.DEBUG)
      log_file = exp_dir + "/exec.log"
      hdlr = logging.FileHandler(log_file)
      print("Logging to {}".format(log_file))
      logger.addHandler(hdlr)
      logger.addHandler(ColorHandler())
      logger.propagate = False
      return logger
  
imports: import numpy
  import logging
  import subprocess
  import os
  import torch
  from collections import OrderedDict
  import plotting
  import sys
  import importlib.util
  import pandas
  import pickle
label_desc: Use image node_id 1 for calling a global function with example usage: get_logger(exp_dir) and returns: logger