Take a leaf out of (someone’s) book

To behave or do something in the way that someone else would.

We plan to take a leaf out of our competitor’s book and advertise our product on the Internet.