docstr: Run the module
  
  pipeline     - instance of cellprofiler_core.pipeline for this run
  workspace    - the workspace contains:
      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        - display within this frame (or None to not display)
docstr_tok: ["Run","the","module","pipeline","-","instance","of","cellprofiler_core.pipeline","for","this","run","workspace","-","the","workspace","contains",":","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","-","display","within","this","frame","(","or","None","to","not","display",")"]
code: def run(self, workspace):
      """Run the module
  
      pipeline     - instance of cellprofiler_core.pipeline for this run
      workspace    - the workspace contains:
          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        - display within this frame (or None to not display)
      """
      image = workspace.image_set.get_image(
          self.image_name.value, must_be_color=True
      )
      if self.should_combine():
          self.run_combine(workspace, image)
      else:
          self.run_split(workspace, image)
  
imports: import re
  import matplotlib.colors
  import numpy
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import HiddenCount
  from cellprofiler_core.setting import SettingsGroup
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.do_something import DoSomething
  from cellprofiler_core.setting.do_something import RemoveSettingButton
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.text import Float
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
label_desc: Use image node_id 11 for calling the ColorToGray obj's underlying member method code with example usage: obj.run(workspace) without return types