class_docstr: Chart internal behaviour related functions
class_docstr_tok: ["Chart","internal","behaviour","related","functions"]
docstr: Remove the transient state after rendering
docstr_tok: ["Remove","the","transient","state","after","rendering"]
code: def teardown(self):
      """Remove the transient state after rendering"""
      if os.getenv("PYGAL_KEEP_STATE"):
          return
  
      del self.state
      self.state = None
  
imports: import os
  from functools import reduce
  from uuid import uuid4
  from pygal._compat import is_list_like
  from pygal.adapters import decimal_to_float, not_zero, positive
  from pygal.config import Config, SerieConfig
  from pygal.serie import Serie
  from pygal.state import State
  from pygal.svg import Svg
  from pygal.util import compose, ident
  from pygal.view import Box, Margin
label_desc: Use image node_id 6 for calling the BaseGraph obj's underlying member method code with example usage: obj.teardown() without return types