code: def touch_empty_backreferences(app, what, name, obj, options, lines):
      """Generate empty back-reference example files
  
      This avoids inclusion errors/warnings if there are no gallery
      examples for a class / module that is being parsed by autodoc"""
  
      if not bool(app.config.sphinx_gallery_conf["backreferences_dir"]):
          return
  
      examples_path = os.path.join(
          app.srcdir,
          app.config.sphinx_gallery_conf["backreferences_dir"],
          "%s.examples" % name,
      )
  
      if not os.path.exists(examples_path):
          # touch file
          open(examples_path, "w").close()
  
file_path: tensorly/doc/sphinx_ext/sphinx_gallery/gen_gallery.py
imports: from __future__ import division, print_function, absolute_import
  import codecs
  import copy
  import re
  import os
  from .None import glr_path_static
  from .None import sphinx_compatibility
  from .gen_rst import generate_dir_rst, SPHX_GLR_SIG
  from .docs_resolv import embed_code_links
  from .downloads import generate_zipfiles
label_desc: Use image node_id 6 for calling a global function with example usage: touch_empty_backreferences(app, what, name, obj, options, lines) without return types