code: def make_workspace(pixel_data, mask=None):
      image = cellprofiler_core.image.Image(pixel_data, mask)
      image_set_list = cellprofiler_core.image.ImageSetList()
  
      image_set = image_set_list.get_image_set(0)
      image_set.add(IMAGE_NAME, image)
  
      module = (
          cellprofiler.modules.identifydeadworms.IdentifyDeadWorms()
      )
      module.set_module_num(1)
      module.image_name.value = IMAGE_NAME
      module.object_name.value = OBJECTS_NAME
  
      pipeline = cellprofiler_core.pipeline.Pipeline()
  
      def callback(caller, event):
          assert not isinstance(
              event, cellprofiler_core.pipeline.event.LoadException
          )
          assert not isinstance(
              event, cellprofiler_core.pipeline.event.RunException
          )
  
      pipeline.add_listener(callback)
      pipeline.add_module(module)
  
      workspace = cellprofiler_core.workspace.Workspace(
          pipeline,
          module,
          image_set,
          cellprofiler_core.object.ObjectSet(),
          cellprofiler_core.measurement.Measurements(),
          image_set_list,
      )
      return workspace, module
  
imports: import centrosome.cpmorphology
  import numpy
  import scipy.ndimage
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import C_COUNT, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, COLTYPE_INTEGER, COLTYPE_FLOAT, M_NUMBER_OBJECT_NUMBER, FF_COUNT
  import cellprofiler.modules.identifydeadworms
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
label_desc: Use image node_id 3 for calling a global function with example usage: make_workspace(pixel_data, mask) and returns: workspace,  module