code: def check_links(
      folder=".",
      match_or=[".py", ".md", ".txt"],
      exclude_or=[".pyc"],
      avoid_files=[""],
      avoid_urls=["http:/", "http://", "https:/", "https://"],
  ):
      """This test checks if the files in the specified folders contain broken URLs
  
      Arguments
      ---------
      folder: path
          The top Folder for searching for the files.
      match_or: list
          Used to specify the extensions of the files to check.
      exclude_or: list
          Used to avoid some file extensions.
      avoid_files: list
          Used to avoid testing some specific file.
      """
  
      check_test = True
      # Find all the files that potentially contain urls
      file_lst = get_all_files(
          folder, match_or=match_or, exclude_or=exclude_or
      )
  
      # Get urls for the list of files - unique list
      all_urls = get_all_urls(file_lst, avoid_urls)
  
      # Check all the urls
      with tqdm(all_urls) as all_urls_progressbar:
          for url in all_urls_progressbar:
              time.sleep(1)
              if not (check_url(url)):
                  check_test = False
                  print("WARNING: %s is DOWN!" % (url))
                  for path in all_urls[url]:
                      print("\t link detected in %s" % (path))
      return check_test
  
file_path: speechbrain/tests/utils/check_url.py
imports: import os
  import re
  import time
  import requests
  from tqdm.contrib import tqdm
  from speechbrain.utils.data_utils import get_all_files
label_desc: Use image node_id 4 for calling a global function with example usage: check_links(folder, match_or, exclude_or, avoid_files, avoid_urls) and returns: check_test