class_docstr: Keeper of structured log for intermediate values during sampling.
class_docstr_tok: ["Keeper","of","structured","log","for","intermediate","values","during","sampling","."]
docstr: Initialize a Logger instance.
docstr_tok: ["Initialize","a","Logger","instance","."]
code: def __init__(self):
      """Initialize a Logger instance."""
      self.root = _Section("root", subsample_factor=1)
      self.stack = [self.root]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import contextlib
  import os
  from magenta.models.coconet import lib_util
  import numpy
label_desc: Use image node_id 1 to create a new Logger object from inherited base classes: object with example: obj = Logger()