code: def test_mandatory_files(
      recipe_folder="tests/recipes",
      must_exist=["Script_file", "Hparam_file", "Readme_file"],
  ):
      """This test checks if all the recipes contain the specified mandatory files.
  
      Arguments
      ---------.
      recipe_folder: path
          Path of the folder containing csv recipe files.
      must_exist: list
          List of the fields of the csv recipe file that must contain valid paths.
  
      Returns
      ---------
      check: bool
          True if the test passes, False otherwise.
      """
  
      check = True
  
      # Loop over all recipe CSVs
      for recipe_csvfile in os.listdir(recipe_folder):
          if recipe_csvfile in __skip_list:
              continue
          with open(
              os.path.join(recipe_folder, recipe_csvfile), newline=""
          ) as csvf:
              reader = csv.DictReader(
                  csvf, delimiter=",", skipinitialspace=True
              )
              for row_id, row in enumerate(reader):
                  for field in must_exist:
                      if not (os.path.exists(row[field].strip())):
                          print(
                              "\tERROR: The recipe %s does not contain a %s. Please add it to %s!"
                              % (row_id, field, recipe_csvfile)
                          )
                          check = False
      assert check
  
imports: import os
  import csv
  from speechbrain.utils.data_utils import get_all_files, get_list_from_csv
label_desc: Use image node_id 3 for calling a global function with example usage: test_mandatory_files(recipe_folder, must_exist) without return types