code: def atexit_rmtree(path,
                    isdir=os.path.isdir,
                    rmtree=shutil.rmtree):  # pragma: no cover
      
      if isdir(path):
          rmtree(path)
docs: Ensure directory removal at interpreter exit.