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: pop_iclabel.m
    path of file: ./repos/ICLabel
    
    the code of the file until where you have to start completion: function [EEG, varargout] = pop_iclabel(EEG, icversion)
%POP_ICLABEL Function for EEG IC labeling
%   Label independent components using ICLabel. Go to
%   https://sccn.uc
    
function "iclabel" is
%   suggested. To report a bug or issue, please create an "Issue" post on 
%   the GitHub page at https://github.com/sccn/ICLabel/issues or send an 
%   email to eeglab@sccn.ucsd.edu.
%
%   Inputs
%       EEG: EEGLAB EEG structure. Must have an attached ICA decomposition.
%       version: Which version of the ICLabel classifier to use. If not 
%           provided, 'Default' is used. The three  ` choices are:
%           'Default' - the full classifier validated in the accompanying
%               publications
%           'Lite' - the lite version of the classifier which excludes 
%               autocorrelation as a feature for performance reasons.
%           'Beta' - included only to maintain the repoducibility of any 
%               studies which may previously have used it.
%
%   Results are stored in EEG.etc.ic_classifications.ICLabel. The matrix of
%   label vectors is stored under "classifications" and the cell array of
%   class names are stored under "classes". The matrix stored under
%   "classifications" is organized with each column matching to the
%   equivalent element in "classes" and each row matching to the equivalent
%   IC. For example, if you want to see what percent ICLabel attributes IC
%   7 to the class "eye", you would look at:
%       EEG.etc.ic_classifications.ICLabel.classifications(7, 3)
%   since EEG.etc.ic_classifications.ICLabel.classes{3} is "eye"

if ~exist('icversion', 'var')
    try
        [~, icversion] = evalc(['inputdlg3(' ...
            '''prompt'', {''Select which icversion of ICLabel to use:'', ''Default (recommended)|Lite|Beta''},' ... 
            '''style'', {''text'', ''popupmenu''},' ...
            '''default'', {[], 1},' ...
            '''tag'', {'''', [''"Default" and "Lite" are validated in the ''' ...
                         '''ICLabel publication. Beta is included ''' ...
                         '''only to maintain the repoducibility of any studies ''' ...
                         '''which may have used it'']},' ...
            '''title'', ''ICLabel'');']);
% The above code is equivalent to the block below except it successfully
% supresses an uneccessary warning from supergui.
%         icversion = inputdlg3( ...
%             'prompt', {'Select which icversion of ICLabel to use:', 'Default (recommend