Examples of Custom Allocation Functions

Hello, are there any working examples of custom allocation functions for dynamic scheduling? I see there is one shown in the documentation, but it doesn’t really explain what it does or how to set it up to get it working.

Thanks!
Moses

https://www.palantir.com/docs/foundry/dynamic-scheduling/scheduling-advanced-features/#custom-allocation-behavior