code: def download(url, dest_path, data_dir=DATA_DIR):
      req = requests.get(url, stream=True)
      req.raise_for_status()
  
      with open(dest_path, "wb") as fd:
          for chunk in req.iter_content(chunk_size=2**20):
              fd.write(chunk)
  
imports: import os
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: download(url, dest_path, data_dir) without return types