Build a Python script to generate Mermaid.js diagrams from FastAPI routes — Development Task