code: def time_logger(name):
      
      start_time = time.time()
      yield
      end_time = time.time()
      total_time = end_time - start_time
  
      logging.info("%s; time: %ss", name, total_time)
docs: This logs the time usage of a code block