class_docstr: FileTree creates a set of files with their contents in their subdirectories
  and cleans them up later.
class_docstr_tok: ["FileTree","creates","a","set","of","files","with","their","contents","in","their","subdirectories","and","cleans","them","up","later","."]
code: def __exit__(
      self,
      exc_type: Optional[Type[BaseException]],
      exc_value: Optional[BaseException],
      traceback: Optional[TracebackType],
  ) -> None:
      shutil.rmtree(str(self.dir), ignore_errors=True)
  
file_path: determined/harness/tests/filetree.py
imports: import contextlib
  import os
  import shutil
  import tempfile
  from pathlib import Path
  from types import TracebackType
  from typing import ContextManager, Dict, Iterator, Optional, Type, Union
label_desc: Use image node_id 3 for calling the FileTree obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, traceback) without return types