A woman is shaving the hair off of a black and white dog.
The boy is walking the dog in the park.
Sentence two can not be about a boy if sentence one is about a woman
You can either be walking a dog or shaving the dog's hair.
Walking a dog is not the same as shaving it.