<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_main_fan(self, main_fan):
 """Set the main fan config. :param main_fan: Value to set the main fan :type main_fan: int [0-10] :returns: None :raises: InvalidInput """

        if type(main_fan) != int and main_fan not in range(0, 11):
            raise InvalidInput("Main fan value must be int between 0-10")
        self._config['main_fan'] = main_fan
        self._q.put(self._config)