tuī​jǐ​jí​rén

to put oneself in someone else's shoes