A conformalized learning of a prediction set with applications to medical imaging classification