code: def download(url, local_path, chunk_size=1024):
      os.makedirs(os.path.split(local_path)[0], exist_ok=True)
      with requests.get(url, stream=True) as r:
          total_size = int(r.headers.get("content-length", 0))
          with tqdm(
              total=total_size, unit="B", unit_scale=True
          ) as pbar:
              with open(local_path, "wb") as f:
                  for data in r.iter_content(chunk_size=chunk_size):
                      if data:
                          f.write(data)
                          pbar.update(chunk_size)
  
file_path: generative-models/sgm/modules/autoencoding/lpips/util.py
imports: import hashlib
  import os
  import requests
  import torch
  import torch.nn
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: download(url, local_path, chunk_size) without return types