Image "Save As" Path

Hello! This wouldn't be too hard to hack my way through, but is there an easy way to get a full file path for an Image's output?
I know I could take the format attribute, map the dropdown indices to extensions, parse the save_as attribute for ### tokens to generate the frame number, etc. But this is prone to issues (like which form of each extension does Clarisse use, for example).
Is there a quick/robust way to get this path in Python?
I know I could take the format attribute, map the dropdown indices to extensions, parse the save_as attribute for ### tokens to generate the frame number, etc. But this is prone to issues (like which form of each extension does Clarisse use, for example).
Is there a quick/robust way to get this path in Python?