def label(filename: str) -> int:
    """
    Processes a filename in order to return the sample's label as an integer
    :param filename: filename of type string
    :return: label (e.g. if the filename contains a sample of audio 4, a 4 would be returned)
    """
    str_label = filename[:2]
    label = ord(str_label[1]) - 48
    label += (ord(str_label[0]) - 48) * 10
    return label