def METHOD_NAME(path, annotation_path):
    with open(annotation_path, 'r') as f:
        annots = f.readlines()
    train_dataset = []
    val_dataset = []
    test_dataset = []
    for line in annots:
        videofilename, audiofilename, label, trainvaltest = line.rstrip().split(';')
        videofilename = os.path.join(path, videofilename)
        audiofilename = os.path.join(path, audiofilename)
        assert os.path.exists(videofilename), 'File {} not found.'.format(videofilename)
        assert os.path.exists(audiofilename), 'File {} not found.'.format(audiofilename)
        sample = {'video_path': videofilename,
                  'audio_path': audiofilename,
                  'label': int(label)-1}
        if trainvaltest == 'training':
            train_dataset.append(sample)
        elif trainvaltest == 'testing':
            test_dataset.append(sample)
        elif trainvaltest == 'validation':
            val_dataset.append(sample)
    return train_dataset, val_dataset, test_dataset