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: ui_report.m
    path of file: ./repos/bspm/thirdparty/spm12/toolbox/marsbar-0.44/@mardo_2
    
    the code of the file until where you have to start completion: function varargout = ui_report(D, varargin)
% method for SPM2 design reporting
%
% Copied with minor edits from:  
% @(#)spm_DesRep.m	2.31 Andrew Holmes 03/03/28
% 
% See that file for detailed commentary
%
% $Id$

%-Format arguments

    
function varargout = ui_report(D, varargin)
% method for SPM2 design reporting
%
% Copied with minor edits from:  
% @(#)spm_DesRep.m	2.31 Andrew Holmes 03/03/28
% 
% See that file for detailed commentary
%
% $Id$

%-Format arguments
%-----------------------------------------------------------------------
if nargin < 2
  action = 'desrepui'; 
else
  action = varargin{1};
end