yì​dì'ér​chǔ

to put oneself in someone else's shoes