class_docstr: Logger which auto closes itself on exit if not already closed.
class_docstr_tok: ["Logger","which","auto","closes","itself","on","exit","if","not","already","closed","."]
code: def close(self):
      if self._finalizer.detach():
          self._logger.close()
      self._logger = None
  
imports: import weakref
  from acme.utils.loggers import base
label_desc: Use image node_id 3 for calling the AutoCloseLogger obj's underlying member method code with example usage: obj.close() without return types