code: def download_with_progressbar(url, save_path):
      logger = get_logger()
      response = requests.get(url, stream=True)
      if response.status_code == 200:
          total_size_in_bytes = int(
              response.headers.get("content-length", 1)
          )
          block_size = 1024  # 1 Kibibyte
          progress_bar = tqdm(
              total=total_size_in_bytes, unit="iB", unit_scale=True
          )
          with open(save_path, "wb") as file:
              for data in response.iter_content(block_size):
                  progress_bar.update(len(data))
                  file.write(data)
          progress_bar.close()
      else:
          logger.error("Something went wrong while downloading models")
          sys.exit(0)
  
file_path: PaddleOCR/ppocr/utils/network.py
imports: import os
  import sys
  import tarfile
  import requests
  from tqdm import tqdm
  from ppocr.utils.logging import get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: download_with_progressbar(url, save_path) without return types