code: def download_a_url(dl_folder, url):
      url, filename = get_downloaded_file(dl_folder, url)
      if os.path.exists(filename):
          print(f"{filename} has already been downloaded so skip")
          return filename
  
      print(f"downloading {url} to {filename}")
      if isinstance(url, list) or isinstance(url, tuple):
          download_parts_and_combine(dl_folder, url, filename)
      else:
          wget.download(url, filename, bar=bar_custom)
      print(f"dowloaded: {filename}")
      return filename
  
imports: from typing import NamedTuple, List
  from urllib.parse import urlparse
  import os, sys
  import subprocess
  from subprocess import check_call, check_output
  import glob
  import wget
  import re
  import multiprocessing
  from functools import partial
  import pathlib
  from collections import OrderedDict
label_desc: Use image node_id 4 for calling a global function with example usage: download_a_url(dl_folder, url) and returns: filename, filename