How best to use --retries and --low-level-retries?

That's amazing. At the risk of asking, would you mind sharing the script (obviously removing anything that's private or confidential)?