shè​shēn​chǔ​dì

to put oneself in another's shoes