[TEST]make retry counts (#10463)
[TEST]make retry counts (#10463)

* make retry counts

* lint

* use function

* move methond inside
robertnishihara/ray,pcmoritz/ray-1,ray-project/ray,robertnishihara/ray,richardliaw/ray,pcmoritz/ray-1,ray-project/ray,richardliaw/ray,robertnishihara/ray,ray-project/ray,robertnishihara/ray,richardliaw/ray,robertnishihara/ray,robertnishihara/ray,richardliaw/ray,ray-project/ray,richardliaw/ray,richardliaw/ray,pcmoritz/ray-1,pcmoritz/ray-1,pcmoritz/ray-1,richardliaw/ray,ray-project/ray,ray-project/ray,robertnishihara/ray,robertnishihara/ray,pcmoritz/ray-1,richardliaw/ray,ray-project/ray,pcmoritz/ray-1,pcmoritz/ray-1,ray-project/ray,robertnishihara/ray