Brain herniation with dilated pupils?

When a brain herniation is formed, the pupil on the diseased side shrinks in the early stage due to the stimulation of the oculomotor nerve, but it is not easily detected for a short period of time, and then the pupil on the diseased side expands due to the compression of the oculomotor nerve.