code: def workspace(image, module):
      image_set_list = cellprofiler_core.image.ImageSetList()
  
      image_set = image_set_list.get_image_set(0)
  
      image_set.add("input", image)
  
      return cellprofiler_core.workspace.Workspace(
          pipeline=cellprofiler_core.pipeline.Pipeline(),
          module=module,
          image_set=image_set,
          object_set=cellprofiler_core.object.ObjectSet(),
          measurements=cellprofiler_core.measurement.Measurements(),
          image_set_list=image_set_list,
      )
  
imports: import base64
  import io
  import zlib
  import numpy
  import pytest
  import skimage.data
  import skimage.exposure
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler_core.modules.injectimage
  import cellprofiler.modules.rescaleintensity
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 4 for calling a global function with example usage: workspace(image, module) and returns: cellprofiler_core