A Boston police officer provided “life-saving CPR” to a 2-year-old boy while responding to an early morning call in Dorchester on Saturday, according to the patrolmen’s union and a police report.