Source code for this sample can be found on GitHub.
Example of a FunctionGraph event function for Python using a timer event.