code: def generate_example_rst(app, what, name, obj, options, lines):
      # generate empty examples files, so that we don't get
      # inclusion errors if there are no examples for a class / module
      examples_path = os.path.join(
          app.srcdir, "modules", "generated", "%s.examples" % name
      )
      if not os.path.exists(examples_path):
          # touch file
          open(examples_path, "w").close()
  
file_path: skope-rules/doc/conf.py
imports: import os
  import sphinx_rtd_theme
  import sys
  import skrules
  import sphinx
  from distutils.version import LooseVersion
label_desc: Use image node_id 1 for calling a global function with example usage: generate_example_rst(app, what, name, obj, options, lines) without return types