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: lui.m
    path of file: ./repos/bspm/thirdparty/MIALAB/LUI_0.2
    
    the code of the file until where you have to start completion: function varargout = LUI(varargin)
 % The Laterality User Interface (LUI) computes the lateral comparison
 % of nifti images.

try
  feature('JavaFigures', 0);
catch
end

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @LUI_OpeningFcn, ...
                   'gui_OutputFcn',  @LUI_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT



% --- Executes just before LUI is made visible.
function LUI_OpeningFcn(hObject, eventdata, handles, varargin)

lui_spm_defaults;
%load to get left
    
function LUI_OpeningFcn(hObject, eventdata, handles, varargin)

lui_spm_defaults;
%load to get left-right orientation

% Choose default command line pbPathOut for LUI
handles.pbPathOut = hObject;

% Update handles structure
guidata(hObject, handles);



%initialize input and pbPathOut tests
reset(hObject, eventdata, handles);

function reset(hObject, eventdata, handles)
%resets parameters for input
global isInputSet isOutputSet;
set(handles.edPathExport, 'String', 'Set Output Path');
set(handles.inputStatus, 'String', 'Status: None Selected');

isInputSet = false;
isOutputSet = false;

% --- Outputs from this function are returned to the command line.
function varargout = LUI_OutputFcn(hObject, eventdata, handles) 

% Get default command line pbPathOut from handles structure
varargout{1} = handles.pbPathOut;


% --- Executes on button press in input.
function input_Callback(hObject, eventdata, handles)

global isInputSet isOutputSet a;

a=lui_spm_select([1 inf],'image','Select input files...');
% a=lui_spm_select;

if a~=0
isInputSet = true;
set(handles.inputStatus, 'String', 'Status: Input Selected');
end