code: func chunkLabels(labels map[string]string, chunkSize int) [][]string {
  	// First sort labels so they always occur in the same order.
  	sorted := make([]string, 0, len(labels))
  	for k, v := range labels {
  		sorted = append(sorted, fmt.Sprintf("%v=%v", k, v))
  	}
  	sort.Slice(sorted, func(i, j int) bool { return sorted[i] < sorted[j] })
  
  	// Then chunk labels into sized chunks.
  	var chunks [][]string
  	for chunkSize < len(sorted) {
  		sorted, chunks = sorted[chunkSize:], append(chunks, sorted[0:chunkSize:chunkSize])
  	}
  	chunks = append(chunks, sorted)
  
  	return chunks
  }
docs: // chunkLabels breaks labels into sized chunks. Used to improve readability
  // of "tsh ls".