def METHOD_NAME(
    org_id: int, default_sample_rate: Optional[float] = None
) -> Optional[float]:
    redis_client = get_redis_client_for_ds()
    cache_key = generate_sliding_window_org_cache_key(org_id)
    try:
        return float(redis_client.get(cache_key))
    except (TypeError, ValueError):
        return default_sample_rate