preposition
a word that shows the relationship between a noun (or pronoun) and other words in a sentence. In this case, 'by' indicates the agent performing an action or the means through which an action is done.
The report was written by the team of researchers.
I heard the news by word of mouth.
I got caught by the cops last night.
She painted a beautiful picture by using only her emotions.