docstr: Display a series of images at different time steps.
docstr_tok: ["Display","a","series","of","images","at","different","time","steps","."]
code: def draw_image(self, metric, limit=5):
      """Display a series of images at different time steps."""
      rows = 1
      cols = limit
      self.ax.axis("off")
      # Take the Axes gridspec and divide it into a grid
      gs = matplotlib.gridspec.GridSpecFromSubplotSpec(
          rows, cols, subplot_spec=self.gs
      )
      # Loop through images in last few steps
      for i, image in enumerate(metric.data[-cols:]):
          ax = self.figure.add_subplot(gs[0, i])
          ax.axis("off")
          ax.set_title(metric.formatted_steps[-cols:][i])
          ax.imshow(norm(image))
  
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 9 for calling the Canvas obj's underlying member method code with example usage: obj.draw_image(metric, limit) without return types