Writing the dreams of an insane AI