code: def _download_image_inner(
      dest, inp, timeout=4, preserve_filename=False
  ):
      i, url = inp
      url = url.split("?")[0]
      url_path = Path(url)
      suffix = url_path.suffix if url_path.suffix else ".jpg"
      name = (
          _get_downloaded_image_filename(dest, url_path.stem, suffix)
          if preserve_filename
          else str(uuid.uuid4())
      )
      try:
          download_url(
              url,
              dest / f"{name}{suffix}",
              show_progress=False,
              timeout=timeout,
          )
      except Exception as e:
          f"Couldn't download {url}."
  
file_path: fastai/fastai/vision/utils.py
imports: from __future__ import annotations
  import uuid
  from ..torch_basics import *
  from ..data.all import *
  from .core import *
  from fastdownload import download_url
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: _download_image_inner(dest, inp, timeout, preserve_filename) without return types