code: def getFlags(self):
      flags = {}
      for i in range(self.flagsLayout.count()):
          item = self.flagsLayout.itemAt(i).widget()
          flags[item.text()] = item.isChecked()
      return flags
  
imports: import re
  from PyQt5 import QtCore
  from PyQt5 import QtGui
  from PyQt5 import QtWidgets
  from PyQt5.Qt import QT_VERSION_STR
  from libs.utils import newIcon, labelValidator
label_desc: Use image node_id 11 for calling the KeyDialog obj's underlying member method code with example usage: obj.getFlags() and returns: flags