code: def testing_logger():
      save_dir = os.getcwd()
      testing_logger = logger.construct_logger("test", save_dir)
      yield testing_logger
  
      # Gather info
      filehandler = testing_logger.handlers[0]
      log_file_name = filehandler.baseFilename
  
      # Teardown log file
      filehandler.close()
      os.remove(log_file_name)
  
      # Teardown gitdiff.patch file
      [folder, file] = os.path.split(log_file_name)
      file_core = os.path.splitext(file)[0]
      gitdiff_file_name = os.path.join(
          folder, file_core + ".gitdiff.patch"
      )
      os.remove(gitdiff_file_name)
  
file_path: pykale/tests/utils/test_logger.py
imports: import logging
  import os
  import pytest
  from kale.utils import logger
label_desc: Use image node_id 1 for calling a global function with example usage: testing_logger() without return types