code: def create_func_delete_files(paths):
      """
      Create function to delete cache files after tests.
      """
  
      def wrapper():
          for path in paths:
              file_list = glob.glob(path)
              # Iterate over the list of filepaths & remove each file.
              for file_path in file_list:
                  try:
                      os.remove(file_path)
                  except OSError:
                      pass
  
      return wrapper
  
imports: import glob
  import os
  import numpy
  import pytest
  from sklearn.datasets import load_breast_cancer
  from fedot.core.caching.pipelines_cache import OperationsCache
  from fedot.core.data.data import InputData
  from fedot.core.data.data_split import train_test_data_setup
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 3 for calling a global function with example usage: create_func_delete_files(paths) and returns: wrapper