<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_cooling_motor(self, cooling_motor):
 """Set the cooling motor config. :param cooling_motor: Value to set the cooling motor :type cooling_motor: bool :returns: None :raises: InvalidInput """

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