Render a mingrammer/diagrams Python snippet to PNG and return the image.
The code must be a complete Python script using `from diagrams import ...` imports
and a `with Diagram(...)` context manager block.
Use search_nodes to verify node names and get correct import paths before writing code.
Read the diagrams://reference/diagram, diagrams://reference/edge, and
diagrams://reference/cluster resources for constructor options and usage examples.
Args:
code: Full Python code using the diagrams library.
filename: Output filename without extension.
format: Output format — ``"png"`` (default), ``"svg"``, or ``"pdf"``.
download_link: If True, store the image on the server and return a
temporary download URL path (/images/{token}) instead of
the inline image. The link expires after 15 minutes.
Connector