class_docstr: This class consists of network variables and operations at each iteration.
  It is generated by the application engine but can be modified by the
  application as well.
class_docstr_tok: ["This","class","consists","of","network","variables","and","operations","at","each","iteration",".","It","is","generated","by","the","application","engine","but","can","be","modified","by","the","application","as","well","."]
docstr: converting current_iter_output to string, for console displaying
  
  :return: summary string
docstr_tok: ["converting","current_iter_output","to","string",",","for","console","displaying",":","return",":","summary","string"]
code: def to_console_string(self):
      """
      converting current_iter_output to string, for console displaying
  
      :return: summary string
      """
      summary_indentation = "    " if self.is_validation else ""
      summary_format = summary_indentation + CONSOLE_FORMAT
      try:
          console_content = self.current_iter_output.get(CONSOLE, "")
      except AttributeError:
          console_content = (
              "print to console -- set current_iter_output "
              "to a dictionary of {CONSOLE: 'content'}."
          )
      result_str = _console_vars_to_str(console_content)
      summary = summary_format.format(
          self.phase, self.current_iter, result_str, self.iter_duration
      )
      return summary
  
imports: import itertools
  import time
  from niftynet.engine.application_variables import CONSOLE, TF_SUMMARIES
  from niftynet.engine.signal import TRAIN, VALID, INFER
  from niftynet.utilities.util_common import look_up_operations
label_desc: Use image node_id 17 for calling the IterationMessage obj's underlying member method code with example usage: obj.to_console_string() and returns: summary