from tempfile import TemporaryDirectory def temp_dir(): return TemporaryDirectory()