code: func validateIPSetType(set Type) bool {
  	for _, valid := range ValidIPSetTypes {
  		if set == valid {
  			return true
  		}
  	}
  	klog.Errorf("Currently supported ipset types are: %v, %s is not supported", ValidIPSetTypes, set)
  	return false
  }
docs: // checks if the given ipset type is valid.