docstr: Inserts a text summary at the top that lists the number of steps and total
  training time.
docstr_tok: ["Inserts","a","text","summary","at","the","top","that","lists","the","number","of","steps","and","total","training","time","."]
code: def draw_summary(self, history, title=""):
      """Inserts a text summary at the top that lists the number of steps and total
      training time."""
      # Generate summary string
      time_str = str(history.get_total_time()).split(".")[
          0
      ]  # remove microseconds
      summary = "Step: {}      Time: {}".format(history.step, time_str)
      if title:
          summary = title + "\n\n" + summary
      self.figure.suptitle(summary)
  
imports: import itertools
  import math
  import numpy
  import matplotlib
  import matplotlib.pyplot
  import IPython.display
  from mpl_toolkits.mplot3d import Axes3D
  from matplotlib.collections import PolyCollection
label_desc: Use image node_id 7 for calling the Canvas obj's underlying member method code with example usage: obj.draw_summary(history, title) without return types