def METHOD_NAME(self, template_name):
    """
    Method returns the contents of the  template
    """
    for origin in self.base_loader.get_template_sources(template_name):
        try:
            return self.base_loader.get_contents(origin), origin
        except TemplateDoesNotExist:
            pass
    raise TemplateDoesNotExist(template_name)