{{Cleanup|December 2006}}
See deus ex machina for more information about this device.
This is not specifically the use of the device in comedy, but the specific comedic use of a deus ex machina that at least some of the audience is expected to appreciate as such.