def get_template(self, entry, random_seed):
        '''
        random sample a template for each entry
        '''
        random.seed(random_seed) # fix random seed for reproduction
        template = random.choice(self.get_all_templates(entry, random_seed))
        return template

        random sample a template for each entry
        
adaptllm/utils/read.py