code: def download(url, dest):
      
      path = os.path.join(dest, url.split('/')[-1])
      r = requests.get(url, stream=True)
      r.raise_for_status()
      with open(path, 'wb') as f:
          for chunk in r.iter_content(chunk_size=1024):
              if chunk:
                  f.write(chunk)
      return path
docs: Download the image to disk.