"I take food from Peter."
Translation:मैं पीटर से खाना लेता हूँ।
खाना has two meanings. In one, it is a noun that means 'food'. In the other, it is a verb which means 'to eat'. This is similar to how the English word 'cook' is both a noun and a verb.
In this sentence, it is used as the noun 'food'.
खाता is the present tense masculine form of the verb खाना.