@contextmanager<EOL>def mkdtemp(hint='<STR_LIT>'):
dirname = tempfile.mkdtemp(prefix='<STR_LIT>', suffix=hint)<EOL>try:<EOL><INDENT>yield dirname<EOL><DEDENT>finally:<EOL><INDENT>shutil.rmtree(dirname)<EOL><DEDENT>
Create a temporary directory, then clean it up.

    Use as a context manager: with mkdtemp('-purpose'): ...