parameters: ()
docstring: Create a temporary directory in a context manager.
docstring_summary: Create a temporary directory in a context manager.
docstring_tokens: Create a temporary directory in a context manager .
function: def tempdir():
      """Create a temporary directory in a context manager."""
      td = tempfile.mkdtemp()
      try:
          yield td
      finally:
          shutil.rmtree(td)
function_tokens: def tempdir ( ) : td = tempfile . mkdtemp ( ) try : yield td finally : shutil . rmtree ( td )