def config_retry_strategy(retry):
    """Generate retry strategy."""
    if not isinstance(retry, int):
        raise ValueError("Parameter retry should be a number")
    return {"limit": retry, "retryPolicy": "Always"}