Problem: Sentence1: She wants to leave.
Sentence2: His good luck finally left him.
Q: Does the term leave mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: He got life for killing the guard.
Sentence2: City life.
Q: Does the term life mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: The south wall had a small window.
Sentence2: The walls were covered with pictures.
Q: Does the term wall mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: He asked for a poll of public opinion.
Sentence2: His opinions appeared frequently on the editorial page.
Q: Does the term opinion mean the same thing in both these sentences?

Answer:
different meanings