How does the doctor “check your cervix”

Mary

When you are in labour how is a cervical exam done to determine how dilated you are? Is there a device they put up there? Is it visual? A Finger? Just trying to mentally prepare myself for everything lol