The correct option is
D Imagine oneself to be in another person's situation
The given phrase means 'To be in someone else's situation'.
Option D is correct. 'Imagine oneself to be in another person's situation' is close in meaning to the required meaning. Thus, it is the correct option.
Options A, B and C do not have the required meaning. Thus, they are incorrect.