A girl lost in her train of thought is tested by artificial intelligence to see if she is allowed to be released to the real world