code: def __init__(self):
      self.data = []
      self.has_ipython = True
      self.display_type = "multi"
      self.global_data_size = 0
      self.global_val_data_size = 0
      self.snapped = False
  
      global CURSES_SUPPORTED
      if CURSES_SUPPORTED:
          try:
              curses.setupterm()
              sys.stdout.write(curses.tigetstr("civis").decode())
          except Exception:
              CURSES_SUPPORTED = False
  
      try:
          clear_output
      except NameError:
          self.has_ipython = False
  
imports: from __future__ import division, print_function, absolute_import
  import time
  import sys
label_desc: Use image node_id 1 to create a new TermLogger object from inherited base classes: Callback with example: obj = TermLogger()