code: def test_add_two_image_sets(self):
      x = cellprofiler_core.image.ImageSetList()
      y = x.get_image_set(0)
      z = x.get_image_set(1)
      assert x.count() == 2, "# of elements was %d, should be 2" % (
          x.count()
      )
      assert y.number == 0, (
          "The image set should be #0, was %d" % y.number
      )
      assert z.number == 1, (
          "The image set should be #1, was %d" % y.number
      )
      assert y == x.get_image_set(
          0
      ), "The first image set was not retrieved by index"
      assert z == x.get_image_set(
          1
      ), "The second image set was not retrieved by index"
  
file_path: CellProfiler/tests/core/image/test_image_set_list.py
imports: import numpy
  import cellprofiler_core.image
  import cellprofiler_core.image.abstract_image._callback_image
label_desc: Use image node_id 4 for calling the TestImageSetList obj's underlying member method code with example usage: obj.test_add_two_image_sets() without return types