<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _mom(self, k, dist, length, cache):
 """ Moment generating function. Example: [1. 0.5 0.25] """

        return numpy.prod(dist.mom(k), 0)