docs: def get_templatetype_by_name(template_id, type_name,**kwargs):
      """
          Get a specific resource type by name.
      """
  
      try:
          templatetype = db.DBSession.query(TemplateType).filter(TemplateType.id==template_id, TemplateType.name==type_name).one()
      except NoResultFound:
          raise HydraError("%s is not a valid identifier for a type"%(type_name))
  
      return templatetype