code: def make_workspace(image, mask):
      """Make a workspace for testing FilterByObjectMeasurement"""
      module = cellprofiler.modules.smooth.Smooth()
      pipeline = cellprofiler_core.pipeline.Pipeline()
      object_set = cellprofiler_core.object.ObjectSet()
      image_set_list = cellprofiler_core.image.ImageSetList()
      image_set = image_set_list.get_image_set(0)
      workspace = cellprofiler_core.workspace.Workspace(
          pipeline,
          module,
          image_set,
          object_set,
          cellprofiler_core.measurement.Measurements(),
          image_set_list,
      )
      image_set.add(
          INPUT_IMAGE_NAME, cellprofiler_core.image.Image(image, mask)
      )
      module.image_name.value = INPUT_IMAGE_NAME
      module.filtered_image_name.value = OUTPUT_IMAGE_NAME
      return workspace, module
  
imports: import io
  import centrosome.filter
  import centrosome.smooth
  import numpy
  import scipy.ndimage
  import skimage.restoration
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.smooth
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 1 for calling a global function with example usage: make_workspace(image, mask) and returns: workspace,  module