code: func (s *Sample) HasLabel(key, value string) bool {
  	for _, v := range s.Label[key] {
  		if v == value {
  			return true
  		}
  	}
  	return false
  }
docs: // HasLabel returns true if a sample has a label with indicated key and value.