code: def run(self, workspace):
      if self.show_window:
          m = workspace.get_measurements()
          # Get plates
          plates = list(
              map(
                  str,
                  m.get_all_measurements(IMAGE, self.plate_name.value),
              )
          )
          # Get wells
          if self.well_format == WF_NAME:
              wells = m.get_all_measurements(
                  IMAGE, self.well_name.value
              )
          elif self.well_format == WF_ROWCOL:
              wells = [
                  "%s%s" % (x, y)
                  for x, y in zip(
                      m.get_all_measurements(
                          IMAGE, self.well_row.value
                      ),
                      m.get_all_measurements(
                          IMAGE, self.well_col.value
                      ),
                  )
              ]
          # Get data to plot
          data = m.get_all_measurements(
              self.get_object(), self.plot_measurement.value
          )
  
          # Construct a dict mapping plates and wells to lists of measurements
          pm_dict = {}
          for plate, well, data in zip(plates, wells, data):
              if data is None:
                  continue
              if plate in pm_dict:
                  if well in pm_dict[plate]:
                      pm_dict[plate][well] += [data]
                  else:
                      pm_dict[plate].update({well: [data]})
              else:
                  pm_dict[plate] = {well: [data]}
  
          for plate, sub_dict in list(pm_dict.items()):
              for well, vals in list(sub_dict.items()):
                  vals = numpy.hstack(vals)
                  if self.agg_method == AGG_AVG:
                      pm_dict[plate][well] = numpy.mean(vals)
                  elif self.agg_method == AGG_STDEV:
                      pm_dict[plate][well] = numpy.std(vals)
                  elif self.agg_method == AGG_MEDIAN:
                      pm_dict[plate][well] = numpy.median(vals)
                  elif self.agg_method == AGG_CV:
                      pm_dict[plate][well] = numpy.std(
                          vals
                      ) / numpy.mean(vals)
                  else:
                      raise NotImplemented
          workspace.display_data.pm_dict = pm_dict
  
file_path: CellProfiler/src/frontend/cellprofiler/modules/displayplatemap.py
imports: import numpy
  from cellprofiler_core.constants.measurement import IMAGE
  from cellprofiler_core.constants.module import USING_METADATA_HELP_REF
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Measurement
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import Text
label_desc: Use image node_id 5 for calling the DisplayPlatemap obj's underlying member method code with example usage: obj.run(workspace) without return types