<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_state(self, state):
 """Updates the VM state. This operation will also update the settings file with the correct information about the saved state file and delete this file from disk when appropriate. in state of type :class:`MachineState` """

        if not isinstance(state, MachineState):
            raise TypeError("state can only be an instance of type MachineState")
        self._call("updateState",
                     in_p=[state])