What is the meaning of Dance_to_someone's_tune?

To do what someone demands or expects, do as told, defer to someone's wishes or demands, do someone's bidding.

Source: wiktionary.org