def METHOD_NAME(self, uid):
    "Either discard or downgrade uid occurence in a set"
    if  uid in self.set:
        self.set[uid] -= 1
    if  uid in self.set and not self.set[uid]:
        del self.set[uid]