code: def generateMask(self, data, startMask):
      vals = data[self.fieldName][startMask]
      mask = np.ones(len(vals), dtype=bool)
      otherMask = np.ones(len(vals), dtype=bool)
      for c in self:
          key = c.maskValue
          if key == "__other__":
              m = ~otherMask
          else:
              m = vals != key
              otherMask &= m
          if c.value() is False:
              mask &= m
      startMask[startMask] = mask
      return startMask
  
imports: from collections import OrderedDict
  import numpy
  from ..None import functions
  from ..None import parametertree
  from ..Qt import QtCore
label_desc: Use image node_id 2 for calling the EnumFilterItem obj's underlying member method code with example usage: obj.generateMask(data, startMask) and returns: startMask