code: def download_all_url(url_file, model_folder):
      try:
          with open(url_file) as f:
              all_urls = json.load(f)
      except Exception as e:
          logging.fatal("The url json file could not be opened")
          raise e
  
      for model_type in all_urls:
          url_list = all_urls[model_type]
          for model_name in url_list:
              url = url_list[model_name]
              # print(url)
              tarFilename = url.split("/")[-1]
  
              # check if the tar file already exists on disk
              # if not tarFilename[0].isdigit() and os.path.isfile(tarFilename):
              if os.path.isfile(tarFilename):
                  print("File already exists, skipping ", url)
                  continue
              print("Downloading ", url)
              response = requests.get(url, stream=True)
              if response.status_code == 200:
                  with open(tarFilename, "wb") as f:
                      f.write(response.raw.read())
              if tarFilename[0].isdigit():
                  save_folder = model_folder + "/" + model_name
              else:
                  save_folder = model_folder
              shutil.unpack_archive(tarFilename, save_folder)
  
imports: import os
  import json
  import argparse
  import logging
  import requests
  import shutil
label_desc: Use image node_id 1 for calling a global function with example usage: download_all_url(url_file, model_folder) without return types