@contextlib.contextmanager<EOL>def tmpdir():
tempdir = tempfile.mkdtemp()<EOL>try:<EOL><INDENT>yield tempdir<EOL><DEDENT>finally:<EOL><INDENT>rmtree(tempdir)<EOL><DEDENT>
Contextmanager to create a temporary directory.  It will be cleaned up
    afterwards.