pip install pytest-rerunfailures install plug
When executed pytest --reruns 1 (failed run once with Example)