code: def groupImageDataByClientId(self):
      for imageId, imageData in self.nameToImageData.items():
          if imageData.isSegemented():
              clientId = imageData.getClientId()
              if clientId:
                  if clientId not in self.clientToImageIds:
                      self.clientToImageIds[clientId] = []
                  self.clientToImageIds[clientId].append(imageId)
  
imports: import datetime
  import logging
  from typing import Dict, List
  from MONAILabelReviewerLib.ImageData import ImageData
  from MONAILabelReviewerLib.MONAILabelReviewerEnum import Level
label_desc: Use image node_id 4 for calling the ImageDataExtractor obj's underlying member method code with example usage: obj.groupImageDataByClientId() without return types