It is a user defined function I made. You have to copy the function into your code to make it work. It probably depends on a couple of other helper functions and variables in the code too. Good luck