human
Complete this python program:
def _drv2_moment(self, n, *args):
assistant
#Here is the Python program you requested.

    """Non-central moment of discrete distribution.
    """
    def fun(x):
        return (np.power(x, n) * self._pmf(x, *args))
    return _expect(fun, self.a, self.b, self.ppf(0.5, *args), self.inc)