A special machine measures your brain waves to create an electroencephalogram.
People brought into hypnotic sleep can give any electroencephalogram recording the hypnotist will instruct.