def setup():
global IPYTHONDIR<EOL>global env<EOL>global save_get_ipython_dir<EOL>IPYTHONDIR = tempfile.mkdtemp()<EOL>env = os.environ.copy()<EOL>env["<STR_LIT>"] = IPYTHONDIR<EOL>save_get_ipython_dir = path.get_ipython_dir<EOL>path.get_ipython_dir = lambda : IPYTHONDIR<EOL>
setup temporary IPYTHONDIR for tests