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 write(self, values: base.LoggingData):
      if self._logger is None:
          raise ValueError("init not called")
      self._logger.write(values)
  
imports: import weakref
  from acme.utils.loggers import base
label_desc: Use image node_id 2 for calling the AutoCloseLogger obj's underlying member method code with example usage: obj.write(values) without return types