code: def on_train_end(self, training_state):
      # Reset caret to last position
      to_be_printed = ""
      if (
          CURSES_SUPPORTED
      ):  # if not self.has_ipython #TODO:check bug here
          for i in range(len(self.data) + 2):
              to_be_printed += "\033[B"
          if not self.snapped:
              to_be_printed += "--\n"
      sys.stdout.write(to_be_printed)
      sys.stdout.flush()
  
      # Set caret visible if possible
      if CURSES_SUPPORTED:
          sys.stdout.write(curses.tigetstr("cvvis").decode())
  
imports: from __future__ import division, print_function, absolute_import
  import time
  import sys
label_desc: Use image node_id 10 for calling the TermLogger obj's underlying member method code with example usage: obj.on_train_end(training_state) without return types