To check is to ask someone whether something is correct, true, or allowed.
Peter wants to check with the teacher to see if he is doing the assignment right.
Example picture