code: def inject_minigalleries(app, what, name, obj, options, lines):
      if what in ("class", "function") and _has_backref(name):
          lines.append(f"Tutorials using ``{name.split('.')[-1]}``:")
          lines.append(f"    .. minigallery:: {name}")
          lines.append("\n")
  
file_path: audio/docs/source/conf.py
imports: import os
  import re
  import sys
  import warnings
  from datetime import datetime
  import pytorch_sphinx_theme
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.util.docfields import TypedField
  from custom_directives import CustomCardEnd, CustomCardItem, CustomCardStart, SupportedDevices, SupportedProperties
  from docutils.parsers import rst
label_desc: Use image node_id 6 for calling a global function with example usage: inject_minigalleries(app, what, name, obj, options, lines) without return types