code: def setup(app):
      setup.app = app
      setup.config = app.config
      setup.confdir = app.confdir
  
      app.add_directive("workflow", WorkflowDirective)
      app.add_config_value("graph2use", "hierarchical", "html")
      app.add_config_value("simple_form", True, "html")
      app.add_config_value("wf_pre_code", None, True)
      app.add_config_value("wf_include_source", False, True)
      app.add_config_value("wf_html_show_source_link", True, True)
      app.add_config_value("wf_formats", ["png", "svg", "pdf"], True)
      app.add_config_value("wf_basedir", None, True)
      app.add_config_value("wf_html_show_formats", True, True)
      app.add_config_value("wf_rcparams", {}, True)
      app.add_config_value("wf_apply_rcparams", False, True)
      app.add_config_value("wf_working_directory", None, True)
      app.add_config_value("wf_template", None, True)
  
      app.connect("doctree-read", mark_wf_labels)
  
      metadata = {
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
      return metadata
  
imports: import sys
  import os
  import shutil
  import io
  import re
  import textwrap
  from os.path import relpath
  from errno import EEXIST
  import traceback
label_desc: Use image node_id 7 for calling a global function with example usage: setup(app) and returns: metadata