code: def print_termlogs(self, training_state):
      termlogs = self.termlogs(
          step=training_state.step,
          global_loss=training_state.global_loss,
          global_acc=training_state.global_acc,
          step_time=training_state.step_time_total,
      )
  
      if self.has_ipython and not CURSES_SUPPORTED:
          clear_output(wait=True)
      else:
          for i in range(len(self.data) + 1):
              termlogs += "\033[A"
  
      sys.stdout.write(termlogs)
      sys.stdout.flush()
  
imports: from __future__ import division, print_function, absolute_import
  import time
  import sys
label_desc: Use image node_id 12 for calling the TermLogger obj's underlying member method code with example usage: obj.print_termlogs(training_state) without return types