code: def workspace(image, measurements, module, objects):
      image_set_list = cellprofiler_core.image.ImageSetList()
  
      image_set = image_set_list.get_image_set(0)
  
      image_set.add("image", image)
  
      object_set = cellprofiler_core.object.ObjectSet()
  
      object_set.add_objects(objects, "objects")
  
      return cellprofiler_core.workspace.Workspace(
          cellprofiler_core.pipeline.Pipeline(),
          module,
          image_set,
          object_set,
          measurements,
          image_set_list,
      )
  
imports: import numpy
  import numpy.testing
  import pytest
  import skimage.morphology
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT, COLTYPE_INTEGER
  import cellprofiler.modules.measureimageintensity
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 5 for calling a global function with example usage: workspace(image, measurements, module, objects) and returns: cellprofiler_core