code: def setup(app):
      app.connect("autodoc-process-docstring", inject_minigalleries)
      app.connect("autodoc-process-docstring", inject_weight_metadata)
  
imports: import os
  import sys
  import textwrap
  from copy import copy
  from pathlib import Path
  import pytorch_sphinx_theme
  import torchvision
  import torchvision.models
  from sphinx_gallery.sorting import ExplicitOrder
  from tabulate import tabulate
  from sphinx_gallery import gen_rst
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.util.docfields import TypedField
label_desc: Use image node_id 5 for calling a global function with example usage: setup(app) without return types