code: def download_file(self, url, local_path):
          
          response = requests.get(url, stream=True)
  
          with open(local_path, 'wb') as f:
              for chunk in tqdm(response.iter_content(chunk_size=1024), unit='KB'):
                  if chunk: # filter out keep-alive new chunks
                      f.write(chunk)
                      f.flush()
docs: Download a file from a remote host.