<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def logpdf_sum(self, f, y, Y_metadata=None):
 """ Convenience function that can overridden for functions where this could be computed more efficiently """

        return np.sum(self.logpdf(f, y, Y_metadata=Y_metadata))