code: def test_dead_links():
      # Iterate through all datasets, ensure links are valid and reachable.
      all_datasets = ludwig.datasets.list_datasets()
  
      for dataset_name in all_datasets:
          config = ludwig.datasets.get_dataset_config(dataset_name)
          download_urls = (
              [config.download_urls]
              if isinstance(config.download_urls, str)
              else config.download_urls
          )
          for url in download_urls:
              try:
                  check_link(url)
              except Exception as e:
                  logger.exception(
                      f"Exception thrown downloading {dataset_name} dataset",
                      e,
                  )
  
imports: import logging
  import requests
  import ludwig.datasets
label_desc: Use image node_id 2 for calling a global function with example usage: test_dead_links() without return types