The location of the signature is generally the blank space on the test paper, or next to the score, so that the teacher can see it at a glance.
The surface of the paper should be neat and tidy, and you can't sign it casually.
If there are special requirements, the teacher will explain in advance, and parents can sign according to the teacher's requirements.