What is a sheep dog trained to do?

A sheep dog is trained to help the farmer round up sheep. Dogs are taught to understand commands from the farmer. Usually the farmer tells the dogs what to do by whistling.