code: def _fetch_templates(src):
      '''
      Fetch all of the templates in the src directory
  
      :param src: The source path
      :type  src: ``str``
  
      :rtype: ``list`` of ``tuple``
      :returns: ``list`` of ('key', 'description')
      '''
      templates = []
      log.debug('Listing contents of %s', src)
      for item in os.listdir(src):
          s = os.path.join(src, item)
          if os.path.isdir(s):
              template_path = os.path.join(s, TEMPLATE_FILE_NAME)
              if os.path.isfile(template_path):
                  templates.append(_get_template(template_path, item))
              else:
                  log.debug("Directory does not contain %s %s", template_path,
                            TEMPLATE_FILE_NAME)
      return templatef _fetch_templates(src):
      '''
      Fetch all of the templates in the src directory
  
      :param src: The source path
      :type  src: ``str``
  
      :rtype: ``list`` of ``tuple``
      :returns: ``list`` of ('key', 'description')
      '''
      templates = []
      log.debug('Listing contents of %s', src)
      for item in os.listdir(src):
          s = os.path.join(src, item)
          if os.path.isdir(s):
              template_path = os.path.join(s, TEMPLATE_FILE_NAME)
              if os.path.isfile(template_path):
                  templates.append(_get_template(template_path, item))
              else:
                  log.debug("Directory does not contain %s %s", template_path,
                            TEMPLATE_FILE_NAME)
      return templates
docs: Fetch all of the templates in the src directory
  
      :param src: The source path
      :type  src: ``str``
  
      :rtype: ``list`` of ``tuple``
      :returns: ``list`` of ('key', 'description')