code: def _download(from_s3_path, to_local_path, CACHE_DIR):
      os.makedirs(CACHE_DIR, exist_ok=True)
      response = requests.get(from_s3_path, stream=True)
      total_size_in_bytes = int(
          response.headers.get("content-length", 0)
      )
      block_size = 1024  # 1 Kibibyte
      progress_bar = tqdm.tqdm(
          total=total_size_in_bytes, unit="iB", unit_scale=True
      )
      with open(to_local_path, "wb") as file:
          for data in response.iter_content(block_size):
              progress_bar.update(len(data))
              file.write(data)
      progress_bar.close()
      if total_size_in_bytes not in [0, progress_bar.n]:
          raise ValueError("ERROR, something went wrong")
  
file_path: TTS/TTS/tts/layers/bark/load_model.py
imports: import contextlib
  import functools
  import hashlib
  import logging
  import os
  import requests
  import torch
  import tqdm
  from TTS.tts.layers.bark.model import GPT, GPTConfig
  from TTS.tts.layers.bark.model_fine import FineGPT, FineGPTConfig
label_desc: Use image node_id 2 for calling a global function with example usage: _download(from_s3_path, to_local_path, CACHE_DIR) without return types