code: def make_workspace(object_dict={}, image_dict={}):
      """Make a workspace for testing FilterByObjectMeasurement"""
      module = (
          cellprofiler.modules.filterobjects.FilterByObjectMeasurement()
      )
      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,
      )
      for key in list(image_dict.keys()):
          image_set.add(
              key, cellprofiler_core.image.Image(image_dict[key])
          )
      for key in list(object_dict.keys()):
          o = cellprofiler_core.object.Objects()
          o.segmented = object_dict[key]
          object_set.add_objects(o, key)
      return workspace, module
  
imports: import contextlib
  import io
  import os
  import pickle
  import tempfile
  import numpy
  import pytest
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules
  from cellprofiler_core.constants.measurement import FF_PARENT, FF_COUNT, FF_CHILDREN_COUNT, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, M_LOCATION_CENTER_Z, M_NUMBER_OBJECT_NUMBER
  import cellprofiler.modules.filterobjects
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  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(object_dict, image_dict) and returns: workspace,  module