Source for word: Grammarly
‘Metonymy involves replacing the name of something with the name of a closely related thing. Example: ‘I can lend a hand.’ (A hand means help.)’