code: def create_func_delete_files(paths):
      """
      Create function to delete files that created after tests.
      """
  
      def wrapper():
          for path in paths:
              if os.path.isdir(path) or path.endswith(".log"):
                  shutil.rmtree(path)
  
      return wrapper
  
file_path: FEDOT/test/integration/test_profiler.py
imports: import os
  import shutil
  import pytest
  from golem.utilities.profiler.memory_profiler import MemoryProfiler
  from golem.utilities.profiler.time_profiler import TimeProfiler
  from cases.credit_scoring.credit_scoring_problem import get_scoring_data, run_credit_scoring_problem
label_desc: Use image node_id 2 for calling a global function with example usage: create_func_delete_files(paths) and returns: wrapper