parameters: ()
docstring: Prepare a temporary directory, cleanup when done
docstring_summary: Prepare a temporary directory, cleanup when done
docstring_tokens: Prepare a temporary directory cleanup when done
function: def TemporaryDirectory():  # noqa: N802
      "Prepare a temporary directory, cleanup when done"
      try:
          tmpdir = tempfile.mkdtemp()
          yield tmpdir
      finally:
          shutil.rmtree(tmpdir)
function_tokens: def TemporaryDirectory ( ) : # noqa: N802 try : tmpdir = tempfile . mkdtemp ( ) yield tmpdir finally : shutil . rmtree ( tmpdir )