code: def assign_remote_machine(self, machine, console):
          
          if not isinstance(machine, IMachine):
              raise TypeError("machine can only be an instance of type IMachine")
          if not isinstance(console, IConsole):
              raise TypeError("console can only be an instance of type IConsole")
          self._call("assignRemoteMachine",
                       in_p=[machine, console])
docs: Assigns the machine and the (remote) console object associated with
          this remote-type session.
  
          in machine of type :class:`IMachine`
  
          in console of type :class:`IConsole`
  
          raises :class:`VBoxErrorInvalidVmState`
              Session state prevents operation.