A short example on how to use the function would be great, especially how the masked variant and the wrap_around version works.