<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def aggregate(cls, pipeline=None, **kwargs):
 """ Returns the document dicts returned from the Aggregation Pipeline """

        return list(cls.collection.aggregate(pipeline or [], **kwargs))