class_docstr: A set of objects.Objects instances.
  
  This class allows you to either refer to an object by name or
  iterate over all available objects.
class_docstr_tok: ["A","set","of","objects.Objects","instances",".","This","class","allows","you","to","either","refer","to","an","object","by","name","or","iterate","over","all","available","objects","."]
code: def add_objects(self, objects, name):
      assert isinstance(
          objects, Objects
      ), "objects must be an instance of CellProfiler.Objects"
      assert (
          name not in list(self.__objects_by_name.keys())
      ) or self.__can_overwrite, (
          "The object, {}, is already in the object set".format(name)
      )
      self.__objects_by_name[name] = objects
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/object/_object_set.py
imports: from ._objects import Objects
label_desc: Use image node_id 3 for calling the ObjectSet obj's underlying member method code with example usage: obj.add_objects(objects, name) without return types