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: snpm.m
    path of file: ./repos/bspm/thirdparty/spm12/toolbox/SnPM13
    
    the code of the file until where you have to start completion: function varargout=snpm(Action)
% SnPM: nonParametric statistical analysis toolbox for SPM
%_______________________________________________________________________
%  ___       ____  __  __   Statistical nonParametric Mapping toolbox
% / __) ___ (  _ \(  \/  )  Dpt of Statistics & Warwick Manufacturing Group
% \__ \( _ ) )___/ )    (   The University of Warwick
% (___/(_)_)(__)  (_/\/\_)  SnPM13 
%_______________________________________________________________________
%
% This is SnPM13, the SPM batch-compatible release of the nonParametric 
% toolbox for SPM
% SnPM13 is written for SPM8 and SPM12b -released Friday October 11th, 2013
%
% Please refer to this version as "SnPM13" in papers and
% communications.
%
%                           ----------------
%
% Please report bugs to spm-bugs@fil.ion.ucl.ac.uk. Peculiarities and
% general queries should be raised on the SPM discussion list. We will
% report patches to the list and make updates available if necessary.
%
%                           ----------------
%
% See the "About SnPM" topic (snpm.man) for information on using SnPM
%
% Additional information may be found at the SPMweb site:
%                  http://www.fil.ion.ucl.ac.uk/spm/snpm
% ...where details of the SPM email discussion list can be found:
%                  http://www.fil.ion.ucl.ac.uk/spm/help
%
%                           ----------------
%
%                SnPM, by Andrew Holmes and Thomas Nichols
%                   <snpm-authors@fil.ion.ucl.ac.uk>
%_______________________________________________________________________
% Copyright (C) 2013-14 The University of Warwick
% Id: snpm.m  SnPM13.01 2014/01/31
% Thomas Nichols

%-----------------------------functions-called------------------------
% spm
% spm_figure
% spm_help
% snpm_cp
% snpm_pp
% snpm_ui
%-----------------------------functions-called------------------------

%-Parameters
%-----------------------------------------------------------------------
SnPMver    = 'SnPM13.1.02';

    
function varargout=snpm(Action)
% SnPM: nonParametric statistical analysis toolbox for SPM
%_______________________________________________________________________
%  ___       ____  __  __   Statistical nonParametric Mapping toolbox
% / __) ___ (  _ \(  \/  )  Dpt of Statistics & Warwick Manufacturing Group
% \__ \( _ ) )___/ )    (   The University of Warwick
% (___/(_)_)(__)  (_/\/\_)  SnPM13 
%_______________________________________________________________________
%
% This is SnPM13, the SPM batch-compatible release of the nonParametric 
% toolbox for SPM
% SnPM13 is written for SPM8 and SPM12b -released Friday October 11th, 2013
%
% Please refer to this version as "SnPM13" in papers and
% communications.
%
%                           ----------------
%
% Please report bugs to spm-bugs@fil.ion.ucl.ac.uk. Peculiarities and
% general queries should be raised on the SPM discussion list. We will
% report patches to the list and make updates available if necessary.
%
%                           ----------------
%
% See the "About SnPM" topic (snpm.man) for information on using SnPM
%
% Additional information may be found at the SPMweb site:
%                  http://www.fil.ion.ucl.ac.uk/spm/snpm
% ...where details of the SPM email discussion list can be found:
%                  http://www.fil.ion.ucl.ac.uk/spm/help
%
%                           ----------------
%
%                SnPM, by Andrew Holmes and Thomas Nichols
%                   <snpm-authors@fil.ion.ucl.ac.uk>
%_______________________________________________________________________
% Copyright (C) 2013-14 The University of Warwick
% Id: snpm.m  SnPM13.01 2014/01/31
% Thomas Nichols

%-----------------------------functions-called------------------------
% spm
% spm_figure
% spm_help
% snpm_cp
% snpm_pp
% snpm_ui
%-----------------------------functions-called------------------------

%-Parameters
%-----------------------------------------------------------------------
SnPMver    = 'SnPM13.1.02';

%-Format arguments
%-----------------------------------------------------------------------
if nargin == 0, Action='Init'; end