code: def on_train_begin(self, training_state):
      print("---------------------------------")
      print("Training samples: " + str(self.global_data_size))
      print("Validation samples: " + str(self.global_val_data_size))
      print("--")
      if len(self.data) == 1:
          self.display_type = "single"
  
imports: from __future__ import division, print_function, absolute_import
  import time
  import sys
label_desc: Use image node_id 9 for calling the TermLogger obj's underlying member method code with example usage: obj.on_train_begin(training_state) without return types