The correct description of a gerund and how it functions in a sentence is:
A gerund is a verb ending in -ing that functions as a noun in a sentence.
Gerunds can serve various roles in a sentence, such as the subject, direct object, or object of a preposition.