I think it might be inspired by Treehouse of Horrors VI