def get_group_type_by_name(context, name):
 if (name is None):
  msg = _('name cannot be None')
  raise exception.InvalidGroupType(reason=msg)
 return db.group_type_get_by_name(context, name)

def get_group_type_by_name ( context , name ) : if ( name is None ) : msg = _ ( 'name cannot be None' ) raise exception . InvalidGroupType ( reason = msg ) return db . group_type_get_by_name ( context , name )
retrieves single group type by name .