def colon_labels2binary(report_labels):
	"""
	Convert the pre-defined labels extracted from colon reports to binary labels used for classification

	Params:
		report_labels (dict(list)): the dict containing for each colon report the pre-defined labels

	Returns: a dict containing for each colon report the set of binary labels where 0 = absence and 1 = presence
	"""

	binary_labels = dict()
	# loop over reports
	for rid, rlabels in report_labels.items():
		# assign binary labels to current report
		binary_labels[rid] = {'cancer_or_dysplasia': 0, 'other': 0}
		# update binary labels w/ 1 in case of label presence
		if rlabels['cancer'] == 1 or rlabels['lgd'] == 1 or rlabels['hgd'] == 1:  # update cancer_or_dysplasia label
			binary_labels[rid]['cancer_or_dysplasia'] = 1
		else:  # update other label
			binary_labels[rid]['other'] = 1
	return binary_labels