def best_neighbor_match_check(k_neighbors_labels):
	"""	Returns the value with the most repetitions in `k_neighbors`. """
	k_neighbors_labels.sort()
	longest_repeats = current_repeats = 0
	current_value = best_match_value = k_neighbors_labels[0]
	for value in k_neighbors_labels:
		if value == current_value:
			current_repeats += 1
		else:
			current_repeats = 1
			current_value = value
		if longest_repeats < current_repeats:
			longest_repeats = current_repeats
			best_match_value = current_value

	return best_match_value