code: def object_set(objects):
      object_set = cellprofiler_core.object.ObjectSet()
  
      object_set.add_objects(objects, "inputobjects")
  
      return object_set
  
imports: import numpy
  import pytest
  import scipy.sparse.coo
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler.modules.convertobjectstoimage
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 2 for calling a global function with example usage: object_set(objects) and returns: object_set