code: func stripEmptyDimensions(dims []string) []string {
  	source := strpair.ParseMap(dims)
  	result := strpair.Map{}
  	for k, ds := range source {
  		for _, dim := range ds {
  			if dim != "" {
  				result.Add(k, dim)
  			}
  		}
  	}
  	return result.Format()
  }
docs: // stripEmptyDimensions removes dimensions that are empty, such as "cores:".