code: def setup(app: Sphinx) -> dict[str, Any]:
      app.add_post_transform(ImageDownloader)
      app.add_post_transform(DataURIExtractor)
  
      return {
          "version": "builtin",
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
  
imports: from __future__ import annotations
  import os
  import re
  from hashlib import sha1
  from math import ceil
  from typing import TYPE_CHECKING, Any
  from docutils import nodes
  from sphinx.locale import __
  from sphinx.transforms import SphinxTransform
  from sphinx.util import logging, requests
  from sphinx.util.http_date import epoch_to_rfc1123, rfc1123_to_epoch
  from sphinx.util.images import get_image_extension, guess_mimetype, parse_data_uri
  from sphinx.util.osutil import ensuredir
label_desc: Use image node_id 2 for calling a global function with example usage: setup(app) and returns: dict