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: icatb_eeg_loadICAData.m
    path of file: ./repos/bspm/thirdparty/MIALAB/GroupICATv4.0a/icatb/toolbox/eegiftv1.0c/icatb_eeg_files
    
    the code of the file until where you have to start completion: function [timecourse, topography] = icatb_eeg_loadICAData(varargin)

    
function [timecourse, topography] = icatb_eeg_loadICAData(varargin)
% load EEG components

% TC reshape
tcReshape = 'yes';
moving_average_window = 3;

% get the required parameters
for ii = 1:2:nargin
    % Check parameters
    if strcmpi(varargin{ii}, 'structdata')
        % structural file
        structData = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'compfiles')
        % component files
        compFiles = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'comp_numbers')
        % component numbers
        comp_numbers = varargin{ii + 1};
    elseif strcmpi(varargin{ii}, 'tcreshape')
        % reshape tc to 3D
        tcReshape = varargin{ii + 1};
    end