code: func HugePageSizeFromResourceName(name core.ResourceName) (resource.Quantity, error) {
  	if !IsHugePageResourceName(name) {
  		return resource.Quantity{}, fmt.Errorf("resource name: %s is an invalid hugepage name", name)
  	}
  	pageSize := strings.TrimPrefix(string(name), core.ResourceHugePagesPrefix)
  	return resource.ParseQuantity(pageSize)
  }
docs: // HugePageSizeFromResourceName returns the page size for the specified huge page
  // resource name.  If the specified input is not a valid huge page resource name
  // an error is returned.