human
I wrote the below code

    @functools.wraps(f)
    def wrapped(*args, **kwargs):
        tempdir = mkdtemp()
        args = list(args)
        args.append(tempdir)
        try:
            return f(*args, **kwargs)
        finally:
            rmtree(tempdir)
    return wrapped

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def with_tempdir(f):