docstr: returns fitered list of imageData which are filtered according to level of difficulty (regarding segmentation): easy, medium, hard
docstr_tok: ["returns","fitered","list","of","imageData","which","are","filtered","according","to","level","of","difficulty","(","regarding","segmentation",")",":","easy",",","medium",",","hard"]
code: def getImageDataByLevel(
      self, isEasy: bool, isMedium: bool, isHard: bool
  ) -> Dict[str, ImageData]:
      """
      returns fitered list of imageData which are filtered according to level of difficulty (regarding segmentation): easy, medium, hard
      """
      filteredImageData = {}
      for id, imagedata in self.nameToImageData.items():
          if imagedata is None:
              continue
          if imagedata.isSegemented() is False:
              continue
          if isEasy and imagedata.getLevel() == self.LEVEL.EASY:
              filteredImageData[id] = imagedata
              continue
  
          if isMedium and imagedata.getLevel() == self.LEVEL.MEDIUM:
              filteredImageData[id] = imagedata
              continue
  
          if isHard and imagedata.getLevel() == self.LEVEL.HARD:
              filteredImageData[id] = imagedata
      return filteredImageData
  
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 25 for calling the ImageDataExtractor obj's underlying member method code with example usage: obj.getImageDataByLevel(isEasy, isMedium, isHard) and returns: filteredImageData