<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def link(self, mu, dist):
 """ glm link function this is useful for going from mu to the linear prediction Parameters mu : array-like of legth n dist : Distribution instance Returns ------- lp : np.array of length n """

        return np.log(mu) - np.log(dist.levels - mu)