It's usually custom scripts, I'm not aware of a standard tool. You fill up the file system and then do lots of operations that cause fragmentation.
Actually here is a recent paper discussing this (although the basic concept is much older):
https://arxiv.org/abs/2401.08858