code: def http_get(url: str, temp_file: IO) -> None:
      req = requests.get(url, stream=True)
      total = int(req.headers.get("content-length", 0))
      pbar = tqdm(
          total=total, unit="iB", unit_scale=True, unit_divisor=1024
      )
      for chunk in req.iter_content(chunk_size=1024):
          if chunk:  # filter out keep-alive new chunks
              size = temp_file.write(chunk)
              pbar.update(size)
      pbar.close()
  
file_path: scispacy/scispacy/file_cache.py
imports: import os
  import shutil
  import tempfile
  import json
  from urllib.parse import urlparse
  from pathlib import Path
  from typing import Optional, Tuple, Union, IO
  from hashlib import sha256
  import requests
  from tqdm import tqdm
label_desc: Use image node_id 4 for calling a global function with example usage: http_get(url, temp_file) without return types