code: def make_workspace(
      labels,
      operation,
      iterations=1,
      wants_outlines=False,
      wants_fill_holes=False,
      measurement=None,
  ):
      object_set = cellprofiler_core.object.ObjectSet()
      objects = cellprofiler_core.object.Objects()
      objects.segmented = labels
      object_set.add_objects(objects, INPUT_NAME)
      module = (
          cellprofiler.modules.expandorshrinkobjects.ExpandOrShrink()
      )
      module.object_name.value = INPUT_NAME
      module.output_object_name.value = OUTPUT_NAME
      module.operation.value = operation
      module.iterations.value = iterations
      module.wants_fill_holes.value = wants_fill_holes
      module.set_module_num(1)
      pipeline = cellprofiler_core.pipeline.Pipeline()
      pipeline.add_module(module)
      image_set_list = cellprofiler_core.image.ImageSetList()
      workspace = cellprofiler_core.workspace.Workspace(
          pipeline,
          module,
          image_set_list.get_image_set(0),
          object_set,
          cellprofiler_core.measurement.Measurements(),
          image_set_list,
      )
      return workspace, module
  
imports: import centrosome.cpmorphology
  import centrosome.outline
  import numpy
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler.modules.expandorshrinkobjects
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import cellprofiler_core.measurement
label_desc: Use image node_id 1 for calling a global function with example usage: make_workspace(labels, operation, iterations, wants_outlines, wants_fill_holes, measurement) and returns: workspace,  module