retry
pypi.org
retry
Encapsulating function-calling in a function can reduce repetition and opportunity for error. Moreover, the other function may call the parameter function in some special way; for example, it might call it after doing other things, or at some later time.
“Random-Restart Hill Climbing”—