<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def tt_comp(self, sampled_topics):
 """ Compute term-topic matrix from sampled_topics. """


        samples = sampled_topics.shape[0]
        tt = np.zeros((self.V, self.K, samples))

        for s in range(samples):            
            tt[:, :, s] = \
                samplers_lda.tt_comp(self.tokens, sampled_topics[s, :],
                                     self.N, self.V, self.K, self.beta)

        return tt