code: def _urlretrieve(url, fpath):
      """Retrieve data from given url
  
      Parameters
      ----------
      url: str
          The url to the data.
  
      fpath: str
          The path to file where data is stored.
  
      """
      opener = request.build_opener()
      opener.addheaders = [("User-agent", "Mozilla/5.0")]
  
      with tqdm(unit="B", unit_scale=True) as progress:
  
          def report(chunk, chunksize, total):
              progress.total = total
              progress.update(chunksize)
  
          request.install_opener(opener)
          request.urlretrieve(url, fpath, reporthook=report)
  
file_path: cornac/cornac/utils/download.py
imports: import os
  import shutil
  import zipfile
  import tarfile
  from urllib import request
  from tqdm.auto import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: _urlretrieve(url, fpath) without return types