code: def update_state(self, state):
          
          if not isinstance(state, MachineState):
              raise TypeError("state can only be an instance of type MachineState")
          self._call("updateState",
                       in_p=[state])
docs: 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`