code: def snapshot_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,
      )
  
      termlogs += "--\n"
  
      sys.stdout.write(termlogs)
      sys.stdout.flush()
      self.snapped = True
  
imports: from __future__ import division, print_function, absolute_import
  import time
  import sys
label_desc: Use image node_id 13 for calling the TermLogger obj's underlying member method code with example usage: obj.snapshot_termlogs(training_state) without return types