def set_input(self, key, value):
        """ Sets the <key> to <value> """
        if key not in self._inputs:
            raise InputException("Key {0} is not a valid input!".format(key))
        self._inputs[key].value = value
dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/core/inputs.py/Inputs.set_input/original