<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(self, val1, val2):
 """Aggregate two event values."""

        assert val1 is not None
        assert val2 is not None
        return self._aggregator(val1, val2)