You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: extract_FERA2011_labels.m
    path of file: ./repos/OpenFace/matlab_runners/Action Unit Experiments/helpers
    
    the code of the file until where you have to start completion: function [ labels, valid_ids, filenames  ] = extract_FERA2011_labels( FERA2011_dir, recs, aus )
%EXTRACT_SEMAINE_LABELS Summary of this function goes here
%   Detailed explanation goes here
    

    
function [ labels, valid_ids, filenames  ] = extract_FERA2011_labels( FERA2011_dir, recs, aus )
%EXTRACT_SEMAINE_LABELS Summary of this function goes here
%   Detailed explanation goes here
    
    num_files = numel(recs);

    % speech invalidates lower face AUs    
    labels = cell(num_files, 1);
    valid_ids = cell(num_files, 1);
    filenames = cell(num_files, 1);
    
    file_id = 1;
    
    for i=1:numel(recs)

        file = [FERA2011_dir, '/', recs{i}, '/', recs{i}, '-au.dat'];
    
        [~, filename,~] = fileparts(file);
        filenames{file_id} = filename;

        data = dlmread(file); %import annotations for one video file
       
        speech = data(:,end