def METHOD_NAME(func: FuncT) -> FuncT:
    def newfn(*args: list[Any], **kwargs: dict[str, Any]) -> Any:
        attempt = 0
        while attempt < times:
            try:
                return func(*args, **kwargs)
            except exceptions as e:
                attempt += 1
                if attempt >= times:
                    raise e
            time.sleep(delay)
        return func(*args, **kwargs)
    return cast(FuncT, newfn)