code: def test_README_links(
      recipe_folder="tests/recipes",
      readme_field="Readme_file",
      must_link=["Result_url", "HF_repo"],
  ):
      """This test checks if the README file contains the correct DropBox and HF repositories.
  
      Arguments
      ---------.
      recipe_folder: path
          Path of the folder containing csv recipe files.
      readme_field: string
          Field of the csv recipe file that contains the path to the readme file.
      must_link : list
          Fields that contains the paths that must be linked in the readme file.
  
      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 in reader:
                  with open(row[readme_field].strip()) as readmefile:
                      content = readmefile.read()
                      for field in must_link:
                          links = row[field].strip().split(" ")
                          for link in links:
                              if len(link) == 0:
                                  continue
                              if not (link in content):
                                  print(
                                      "\tERROR: The link to %s does not exist in %s. Please add it to %s!"
                                      % (
                                          link,
                                          row[readme_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 4 for calling a global function with example usage: test_README_links(recipe_folder, readme_field, must_link) without return types