code: def test_serialize_key(self):
      x = cellprofiler_core.image.ImageSetList()
      values = (("A", "B"), ("C", "D"), ("E", "F"))
      for value1, value2 in values:
          d = {"K1": value1, "K2": value2}
          x.get_image_set(d)
      s = x.save_state()
  
      y = cellprofiler_core.image.ImageSetList()
      y.load_state(s)
      assert y.count() == len(values)
      for i in range(len(values)):
          image_set = y.get_image_set(i)
          assert isinstance(image_set, cellprofiler_core.image.ImageSet)
          value1, value2 = values[i]
          for key, value in (("K1", value1), ("K2", value2)):
              assert image_set.keys[key] == value
  
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 8 for calling the TestImageSetList obj's underlying member method code with example usage: obj.test_serialize_key() without return types