Cervix checks for dilation

How are they done? Do they hurt?😰