class_docstr: A Theme is a set of HTML templates and configurations.
  
  This class supports both theme directory and theme archive (zipped theme).
class_docstr_tok: ["A","Theme","is","a","set","of","HTML","templates","and","configurations",".","This","class","supports","both","theme","directory","and","theme","archive","(","zipped","theme",")","."]
docstr: Remove temporary directories.
docstr_tok: ["Remove","temporary","directories","."]
code: def cleanup(self) -> None:
      """Remove temporary directories."""
      if self.rootdir:
          with contextlib.suppress(Exception):
              shutil.rmtree(self.rootdir)
  
      if self.base:
          self.base.cleanup()
  
imports: from __future__ import annotations
  import configparser
  import os
  import shutil
  import sys
  import tempfile
  from os import path
  from typing import TYPE_CHECKING, Any
  from zipfile import ZipFile
  import contextlib
  from sphinx import package_dir
  from sphinx.config import check_confval_types
  from sphinx.errors import ThemeError
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.osutil import ensuredir
label_desc: Use image node_id 5 for calling the Theme obj's underlying member method code with example usage: obj.cleanup() without return types