Question: "invitation" used in the same way in the following two sentences?

She threw the invitation away.

She was an invitation to trouble.
Answer: different meanings
Question: "keep" used in the same way in the following two sentences?

Keep my job for me while I give birth.

The students keep me on my toes.
Answer: different meanings
Question: "nick" used in the same way in the following two sentences?

He's just been released from Shadwell nick prison after doing ten years for attempted murder.

He's in the nick.
Answer: the same meaning
Question: "hegemony" used in the same way in the following two sentences?

The consolidation of the United States' hegemony over a new international economic system.

The hegemony of a single member state is not incompatible with a genuine confederation.
Answer:
the same meaning