code: def setup(app):
      app.add_directive("pygal", PygalDirective)
      app.add_directive("pygal-code", PygalWithCode)
      app.add_directive("pygal-table", PygalTable)
      app.add_directive("pygal-table-code", PygalTableWithCode)
  
      return {"version": "1.0.1"}
  
file_path: pygal/docs/ext/pygal_sphinx_directives.py
imports: from traceback import format_exc, print_exc
  import docutils.core
  from docutils.parsers.rst import Directive
  from sphinx.directives.code import CodeBlock
  import pygal
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) and returns: dict