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


        samples = sampled_topics.shape[0]
        dt = np.zeros((self.D, self.K, samples))

        for s in range(samples):            
                dt[:, :, s] = \
                    samplers_lda.dt_comp(self.docid, sampled_topics[s, :],
                                         self.N, self.K, self.D, self.alpha)

        return dt