code: func populateResourceListV1(spec string) (v1.ResourceList, error) {
  	// empty input gets a nil response to preserve generator test expected behaviors
  	if spec == "" {
  		return nil, nil
  	}
  
  	result := v1.ResourceList{}
  	resourceStatements := strings.Split(spec, ",")
  	for _, resourceStatement := range resourceStatements {
  		parts := strings.Split(resourceStatement, "=")
  		if len(parts) != 2 {
  			return nil, fmt.Errorf("Invalid argument syntax %v, expected <resource>=<value>", resourceStatement)
  		}
  		resourceName := v1.ResourceName(parts[0])
  		resourceQuantity, err := resource.ParseQuantity(parts[1])
  		if err != nil {
  			return nil, err
  		}
  		result[resourceName] = resourceQuantity
  	}
  	return result, nil
  }
docs: // populateResourceListV1 takes strings of form <resourceName1>=<value1>,<resourceName1>=<value2>
  // and returns ResourceList.