In your sentence, the word 'taking' is a gerund. A gerund is a verb that is functioning like a noun. In your sentence, the gerund phrase 'taking you out for dinner' is the object of the verb 'like' in the same way that a regular noun could be the object of the verb 'like'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.