def label_from_file(filename):
    """Return the label from the file name.

    Suppose you have the label name as a suffix of a
    filename. 'location_vegetation.las' will return 'vegetation'.
    """
    label_suffix_separator = '_'
    seq = filename.split('.')[0].split(label_suffix_separator)
    return seq[-1]
