def classify_line(features, model, l_encoder=None):
    """
    Classifies the features based on the given model.
    If a label encoder is specified, it reverses the encoding of the label
    :param features: a vector of features
    :param model: a Classification Model
    :param l_encoder: a LabelEncoder
    :return: a tuple of:    label, [feat1, feat2 ... featN]
    """
    encoded_prediction = model.predict(features)
    prediction = l_encoder.inverse_transform(encoded_prediction) \
        if l_encoder else encoded_prediction
    return prediction, features