code: def setup(app):
      if any(st in version for st in ("post", "dev", "alpha", "beta")):
          bld_type = "dev"
      else:
          bld_type = "rel"
      app.add_config_value("skip_sub_dirs", 0, "")
      app.add_config_value("releaselevel", bld_type, "env")
      if sphinx.version_info[:2] < (7, 1):
          app.connect(
              "html-page-context", add_html_cache_busting, priority=1000
          )
  
file_path: matplotlib/doc/conf.py
imports: from datetime import datetime, timezone
  import logging
  import os
  from pathlib import Path
  import shutil
  import subprocess
  import sys
  import time
  from urllib.parse import urlsplit, urlunsplit
  import warnings
  import sphinx
  import yaml
  import matplotlib
  import sphinxext.gallery_order
  from sphinx_gallery import gen_rst
label_desc: Use image node_id 5 for calling a global function with example usage: setup(app) without return types