import time


def sleep_after(func, duration: int = 0, *args, **kwargs):
    """
    Sleeps for the specified number of seconds after
    running the function.

    :param func: the decorated function
    :param duration: the number of seconds to sleep
    :param args: the positional args of the function
    :param kwargs: the keyword args of the function
    :return: the function return value
    """
    result = func(*args, **kwargs)
    time.sleep(duration)
    return result