code: def get_all_urls(file_lst, avoid_urls):
      """This function searches for all the URLs in the specified file list
  
      Arguments
      ---------
      file_lst: list
          List of the files where to search for URLs.
      avoid_urls: list
          List of URLs to avoid.
  
      Returns
      -------
      urls: dict
          A dictionary where the keys are the detected URLs and the values
      are the files where the URLs are found.
      """
      all_urls = {}
  
      for path in file_lst:
          if ".gz" in path:
              continue
  
          urls = get_url(path)
  
          for url in urls:
              # Clean up urls
              url = url[0].split(")")[0]
              if (
                  url[-1] == "."
                  or url[-1] == ","
                  or url[-1] == " "
                  or url[-1] == "/"
              ):
                  url = url[:-1]
  
              if url in avoid_urls:
                  continue
  
              if url not in all_urls:
                  all_urls[url] = []
              all_urls[url].append(path)
      return all_urls
  
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 2 for calling a global function with example usage: get_all_urls(file_lst, avoid_urls) and returns: all_urls