code: def helper_test_expected_files_exist(expected_files, save_folder):
      """
      Test whether all expected files are present in the specified directory or any of its subdirectories.
  
      Args:
          expected_files (list): A list of file names or paths that are expected to be found in the `save_folder` or its subdirectories.
          save_folder (str): The root directory in which to search for the expected files.
  
      Returns:
          None
  
      Raises:
          AssertionError: If any expected file is not found in the `save_folder` or its subdirectories.
      """
      num_found = 0
      not_found_files = []
      found_files = []
      for expected_file in expected_files:
          found = False
          for dirpath, _, _ in os.walk(save_folder):
              file_path = os.path.join(dirpath, expected_file)
              if os.path.isfile(file_path):
                  num_found += 1
                  found_files.append(expected_file)
                  found = True
                  break
          if not found:
              not_found_files.append(expected_file)
  
      assert num_found == len(expected_files), (
          "Not all expected files were found in the save folder: "
          + str(not_found_files)
          + "\n FOUND: "
          + str(found_files)
      )
  
file_path: pykale/tests/pipeline/test_uncertainty_qbin_pipeline.py
imports: import os
  from typing import Any
  import numpy
  import pandas
  import pytest
  import seaborn
  import kale.utils.logger
  from kale.embed.uncertainty_fitting import fit_and_predict
  from kale.interpret.uncertainty_quantiles import generate_fig_comparing_bins, generate_fig_individual_bin_comparison
label_desc: Use image node_id 3 for calling a global function with example usage: helper_test_expected_files_exist(expected_files, save_folder) without return types