Source code for this sample can be found on GitHub.

Scratch-event

Example of a FunctionGraph event function for Python.