code: def register_machine(self, machine):
          
          if not isinstance(machine, IMachine):
              raise TypeError("machine can only be an instance of type IMachine")
          self._call("registerMachine",
                       in_p=[machine])
docs: Registers the machine previously created using
          :py:func:`create_machine`  or opened using
          :py:func:`open_machine`  within this VirtualBox installation. After
          successful method invocation, the
          :py:class:`IMachineRegisteredEvent`  event is fired.
          
          
          This method implicitly calls :py:func:`IMachine.save_settings` 
          to save all current machine settings before registering it.
  
          in machine of type :class:`IMachine`
  
          raises :class:`VBoxErrorObjectNotFound`
              No matching virtual machine found.
          
          raises :class:`VBoxErrorInvalidObjectState`
              Virtual machine was not created within this VirtualBox instance.