code: func GetPresetByKeyName(
  	sess *session.Session,
  	pkgID int,
  	presetKeyName string,
  	mask ...string,
  ) (datatypes.Product_Package_Preset, error) {
  
  	objectMask := "id, name, keyName, description"
  	if len(mask) > 0 {
  		objectMask = mask[0]
  	}
  
  	service := services.GetProductPackageService(sess)
  
  	// Get preset id
  	preset, err := service.
  		Id(pkgID).
  		Mask(objectMask).
  		Filter(
  			filter.Build(
  				filter.Path("activePresets.keyName").Eq(presetKeyName),
  			),
  		).
  		Limit(1).
  		GetActivePresets()
  	if err != nil {
  		return datatypes.Product_Package_Preset{}, err
  	}
  
  	if len(preset) == 0 {
  		return datatypes.Product_Package_Preset{}, fmt.Errorf("No product preset found for %s", presetKeyName)
  	}
  
  	return preset[0], nil
  }
docs: // GetPresetByKeyName Get the Product_Package_Preset which matches the specified
  // preset key name