text: based on the edgar allen poe short story , `` the facts in the case of m . valdemar , `` comedy revolves around a doctor who convinces a dying man 's family to allow him to put the man in a trance as he takes his final breaths .