code: def update_machine_state(self, machine_state):
          
          if not isinstance(machine_state, MachineState):
              raise TypeError("machine_state can only be an instance of type MachineState")
          self._call("updateMachineState",
                       in_p=[machine_state])
docs: Updates the machine state in the VM process.
          Must be called only in certain cases
          (see the method implementation).
  
          in machine_state of type :class:`MachineState`
  
          raises :class:`VBoxErrorInvalidVmState`
              Session state prevents operation.
          
          raises :class:`VBoxErrorInvalidObjectState`
              Session type prevents operation.