result.png, result.data) are SDK-only. Via the CLI or
HTTP API, save the figure to a file and fetch it with code artifact download
or a filesystem read.
For files written during execution, use artifacts or the machine filesystem to
download the generated output.