1. This tea is to go.

2. This tea is for here.

(What is the part of speech of 'to go' and 'for here'? And what is the meaning of both?)

These sentences are usually used in take-out restaurants. They are both idiomatic. The first uses an infinitive and means that you want to take the tea out of the restaurant. The second uses a prepositional phrase and means that you're going to drink the tea in the restaurant.