Whenever it becomes necessary to determine the age of a child, he may be produced and exhibited to enable the court or jury to determine his age by a personal inspection.