def addDependency(self, node, acceptedStatus):
        # TODO dependencies should be set for restricted node statutes only: DONE, ERROR and CANCELED

        if not acceptedStatus:
            return
        if self is node:
            # skip dependencies on oneself
            return
        self.status = NODE_BLOCKED
        val = [node, acceptedStatus]
        if not val in self.dependencies:
            self.dependencies.append(val)
            if node.reverseDependencies not in self:
                node.reverseDependencies.append(self)
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/dispatcher/model/node.py/BaseNode.addDependency/swapped operands of `not in`