def evaluate_measures(sample):
    """Calculate measure of split quality (each node separately).

    Parameters
    ----------
    sample : a list of integers. The size of the sample equals to the number of objects in the current node. The integer
    values are equal to the class labels of the objects in the node.

    Returns
    -------
    measures - a dictionary which contains three values of the split quality.
    Example of output:

    {
        'gini': 0.1,
        'entropy': 1.0,
        'error': 0.6
    }
    """
    measures = {'gini': float(len(sample)), 'entropy': float(sum(sample)), 'error': float(max(sample))}
    return measures