code: def setup(app):
      # NOTE: in Sphinx 1.8+ `html_css_files` is an official configuration value
      # and can be moved outside of this function (and the setup(app) function
      # can be deleted).
  
      # In Sphinx 1.8 it was renamed to `add_css_file`, 1.7 and prior it is
      # `add_stylesheet` (deprecated in 1.8).
      add_css = getattr(
          app, "add_css_file", getattr(app, "add_stylesheet", None)
      )  # noqa B009
      for css_file in html_css_files:
          add_css(css_file)
      app.set_translator("html", PatchedHTMLTranslator)
  
file_path: tnt/docs/source/conf.py
imports: import os
  import sys
  import pytorch_sphinx_theme
  from sphinx.writers.html import HTMLTranslator
  from torchtnt import __version__
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) without return types