transformers torch ecg-plot matplotlib Pillow pydantic==2.10.6