<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_simulate(self, status):
 """Set the simulation status. :param status: Value to set the simulation :type status: bool :returns: None :raises: InvalidInput """

        if type(status) != bool:
            raise InvalidInput("Status value must be bool")
        self._simulate = bool2int(status)