<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_drum_motor(self, drum_motor):
 """Set the drum motor config. :param drum_motor: Value to set the drum motor :type drum_motor: bool :returns: None :raises: InvalidInput """

        if type(drum_motor) != bool:
            raise InvalidInput("Drum motor value must be bool")
        self._config['drum_motor'] = bool2int(drum_motor)
        self._log.debug(self._config)
        self._q.put(self._config)