docstr: Run the module
  
  workspace    - The workspace contains
      pipeline     - instance of cpp for this run
      image_set    - the images in the image set being processed
      object_set   - the objects (labeled masks) in this image set
      measurements - the measurements for this run
      frame        - the parent frame to whatever frame is created. None means don't draw.
  
  CalculateStatistics does all of its work after running. Do nothing here.
docstr_tok: ["Run","the","module","workspace","-","The","workspace","contains","pipeline","-","instance","of","cpp","for","this","run","image_set","-","the","images","in","the","image","set","being","processed","object_set","-","the","objects","(","labeled","masks",")","in","this","image","set","measurements","-","the","measurements","for","this","run","frame","-","the","parent","frame","to","whatever","frame","is","created",".","None","means","do","n't","draw",".","CalculateStatistics","does","all","of","its","work","after","running",".","Do","nothing","here","."]
code: def run(self, workspace):
      """Run the module
  
      workspace    - The workspace contains
          pipeline     - instance of cpp for this run
          image_set    - the images in the image set being processed
          object_set   - the objects (labeled masks) in this image set
          measurements - the measurements for this run
          frame        - the parent frame to whatever frame is created. None means don't draw.
  
      CalculateStatistics does all of its work after running. Do nothing here.
      """
  
imports: import functools
  import os
  import numpy
  import scipy.optimize
  from cellprofiler_core.constants.measurement import EXPERIMENT
  from cellprofiler_core.constants.measurement import IMAGE
  from cellprofiler_core.constants.measurement import NEIGHBORS
  from cellprofiler_core.constants.module import IO_FOLDER_CHOICE_HELP_TEXT, IO_WITH_METADATA_HELP_TEXT
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.preferences import ABSOLUTE_FOLDER_NAME
  from cellprofiler_core.preferences import DEFAULT_INPUT_FOLDER_NAME
  from cellprofiler_core.preferences import DEFAULT_INPUT_SUBFOLDER_NAME
  from cellprofiler_core.preferences import DEFAULT_OUTPUT_FOLDER_NAME
  from cellprofiler_core.preferences import DEFAULT_OUTPUT_SUBFOLDER_NAME
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Divider
  from cellprofiler_core.setting import Measurement
  from cellprofiler_core.setting import SettingsGroup
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.do_something import DoSomething
  from cellprofiler_core.setting.do_something import RemoveSettingButton
  from cellprofiler_core.setting.text import Directory
  from cellprofiler_core.setting.text import Text
label_desc: Use image node_id 6 for calling the CalculateStatistics obj's underlying member method code with example usage: obj.run(workspace) without return types