code: def generate_name_links_rst(app=None):
      if "linkcheck" not in str(app.builder).lower():
          return
      out_dir = op.abspath(
          op.join(op.dirname(__file__), "..", "generated")
      )
      if not op.isdir(out_dir):
          os.mkdir(out_dir)
      out_fname = op.join(out_dir, "_names.rst")
      names_path = op.abspath(
          op.join(
              os.path.dirname(__file__), "..", "changes", "names.inc"
          )
      )
      with open(out_fname, "w", encoding="utf8") as fout:
          fout.write(":orphan:\n\n")
          with open(names_path, "r") as fin:
              for line in fin:
                  if line.startswith(".. _"):
                      fout.write(f"- {line[4:]}")
  
imports: import os
  from os import path
label_desc: Use image node_id 3 for calling a global function with example usage: generate_name_links_rst(app) without return types