code: def object_set(objects):
      object_set = cellprofiler_core.object.ObjectSet()
  
      object_set.add_objects(objects, "InputObjects")
  
      return object_set
  
file_path: CellProfiler/tests/frontend/modules/test_shrinktoobjectcenters.py
imports: import numpy
  import numpy.testing
  import pytest
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.shrinktoobjectcenters
  import cellprofiler_core.object
label_desc: Use image node_id 3 for calling a global function with example usage: object_set(objects) and returns: object_set