import functools
import time


def slow_down(func, seconds: float):
    """Slow down `func` by adding timeouts before and after its execution."""

    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        time.sleep(seconds)
        result = func(*args, **kwargs)
        time.sleep(seconds)
        return result

    return wrapper