<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_template_text_from_package(self, template_name):
 """Load the named template embedded in our package."""

    if self._package_name is None:
      raise self.MustacheError('No package specified for template loading.')

    path = os.path.join('templates', template_name + '.mustache')
    template_text = pkgutil.get_data(self._package_name, path)
    if template_text is None:
      raise self.MustacheError(
        'could not find template {} in package {}'.format(path, self._package_name))
    return template_text.decode('utf8')