class_docstr: Represents the list of image sets in a pipeline run
  
      
class_docstr_tok: ["Represents","the","list","of","image","sets","in","a","pipeline","run"]
docstr: Return the groupings of an image set list over a set of keys
  
  keys - a sequence of keys that match some of the image set keys
  
  returns an object suitable for use by CPModule.get_groupings:
  tuple of keys, groupings
  keys - the keys as passed into the function
  groupings - a sequence of groupings of image sets where
              each element of the sequence is a two-tuple.
              The first element of the two-tuple is a dictionary
              that gives the group's values for each key.
              The second element is a list of image numbers of
              the images in the group
docstr_tok: ["Return","the","groupings","of","an","image","set","list","over","a","set","of","keys","keys","-","a","sequence","of","keys","that","match","some","of","the","image","set","keys","returns","an","object","suitable","for","use","by","CPModule.get_groupings",":","tuple","of","keys",",","groupings","keys","-","the","keys","as","passed","into","the","function","groupings","-","a","sequence","of","groupings","of","image","sets","where","each","element","of","the","sequence","is","a","two-tuple",".","The","first","element","of","the","two-tuple","is","a","dictionary","that","gives","the","group","'s","values","for","each","key",".","The","second","element","is","a","list","of","image","numbers","of","the","images","in","the","group"]
code: def get_groupings(self, keys):
      """Return the groupings of an image set list over a set of keys
  
      keys - a sequence of keys that match some of the image set keys
  
      returns an object suitable for use by CPModule.get_groupings:
      tuple of keys, groupings
      keys - the keys as passed into the function
      groupings - a sequence of groupings of image sets where
                  each element of the sequence is a two-tuple.
                  The first element of the two-tuple is a dictionary
                  that gives the group's values for each key.
                  The second element is a list of image numbers of
                  the images in the group
      """
      #
      # Sort order for dictionary keys
      #
      sort_order = []
      dictionaries = []
      #
      # Dictionary of key_values to list of image numbers
      #
      d = {}
      for i in range(self.count()):
          image_set = self.get_image_set(i)
          assert isinstance(image_set, ImageSet)
          key_values = tuple([str(image_set.keys[key]) for key in keys])
          if key_values not in d:
              d[key_values] = []
              sort_order.append(key_values)
          d[key_values].append(i + 1)
      return keys, [
          (dict(list(zip(keys, k))), d[k]) for k in sort_order
      ]
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/image/_image_set_list.py
imports: import io
  import pickle
  from ._image_set import ImageSet
  from ..utilities.image import make_dictionary_key
label_desc: Use image node_id 4 for calling the ImageSetList obj's underlying member method code with example usage: obj.get_groupings(keys) and returns: keys,  unknown