A dog is being trained by a police officer.