<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def data_log_likelihood(self, successes, trials, beta):
        '''Calculates the log-likelihood of a Polya tree bin given the beta values.'''
        return binom.logpmf(successes, trials, 1.0 / (1 + np.exp(-beta))).sum()