def get_label(filename, labels=["head", "body", "arm","tail", "leg", "ear"]):
    """
    If the filename contains the word in the list called labels, it returns a pair of name and id number.

    example: 
            get_labels(./raccoon/labels/head.ply, ["head, leg"]): It will return ("head",0)
            get_labels(./raccoon/somefilename.ply, ["goose","raccoon"]): It will return ("raccoon,1")
    """
    for label in labels:
        if label.lower() in filename.lower():
            return (label, labels.index(label))

    return -1
    #raise Exception("There exists no label with "+ filename +". Provide the label of the contained file through the folder name or filename.")