<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def doctemplate(*args):
 """Return a decorator putting ``args`` into the docstring of the decorated ``func``. 'Returns spam, lovely spam.' """

    def decorator(func):
        func.__doc__ = func.__doc__ % tuple(args)
        return func
    return decorator