code: def download_unlicensed_file(url, sourcefile, destfile, totalsz=None):
      """
      Download the file specified by the given URL.
  
      Args:
          url (str): url to download from
          sourcefile (str): file to download from url
          destfile (str): save path
          totalsz (:obj:`int`, optional): total size of file
      """
      req = requests.get(posixpath.join(url, sourcefile), stream=True)
  
      chunksz = 1024**2
      if totalsz is None:
          if "Content-length" in req.headers:
              totalsz = int(req.headers["Content-length"])
              nchunks = totalsz // chunksz
          else:
              print("Unable to determine total file size.")
              nchunks = None
      else:
          nchunks = totalsz // chunksz
  
      print("Downloading file to: {}".format(destfile))
      with open(destfile, "wb") as f:
          for data in tqdm(
              req.iter_content(chunksz),
              total=nchunks,
              unit="MB",
              file=sys.stdout,
          ):
              f.write(data)
      print("Download Complete")
  
imports: import argparse
  import gzip
  import io
  import json
  import os
  import posixpath
  import re
  import sys
  import zipfile
  from os import PathLike, makedirs
  from pathlib import Path
  from urllib.parse import urlparse
  import requests
  from tqdm import tqdm
  from nlp_architect.utils.generic import license_prompt
label_desc: Use image node_id 1 for calling a global function with example usage: download_unlicensed_file(url, sourcefile, destfile, totalsz) without return types