code: def display(self, workspace, figure):
      figure.set_subplots((1, 1))
      ax = figure.subplot(0, 0)
      title = "%s_%s" % (
          self.objects_name.value
          if self.objects_or_image == OI_OBJECTS
          else "Image",
          self.measurement.value,
      )
  
      def imshow_fn(pixel_data):
          if pixel_data.ndim == 3:
              figure.subplot_imshow_color(0, 0, pixel_data, title=title)
          else:
              figure.subplot_imshow_grayscale(
                  0, 0, pixel_data, title=title
              )
  
      self.display_on_figure(workspace, ax, imshow_fn)
  
imports: import matplotlib.axes
  import matplotlib.cm
  import matplotlib.figure
  import matplotlib.text
  import numpy
  from cellprofiler_core.constants.measurement import C_FILE_NAME
  from cellprofiler_core.constants.measurement import C_PATH_NAME
  from cellprofiler_core.constants.measurement import M_LOCATION_CENTER_X
  from cellprofiler_core.constants.measurement import M_LOCATION_CENTER_Y
  from cellprofiler_core.image import FileImage
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.preferences import get_default_colormap
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Color
  from cellprofiler_core.setting import Measurement
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.choice import Colormap
  from cellprofiler_core.setting.range import FloatRange
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
label_desc: Use image node_id 7 for calling the DisplayDataOnImage obj's underlying member method code with example usage: obj.display(workspace, figure) without return types