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: try_mex_setup.m
    path of file: ./repos/prima/matlab/setup_tools
    
    the code of the file until where you have to start completion: function success = try_mex_setup(language, verbose)
%TRY_MEX_SETUP tries running MEX setup for compiling language.
% At return,
% success = 1 means MEX is correctly set up.
% success = 0 means MEX setup fails.
% success = -1 means MEX setup runs successfully, but eith
    
function success = mex_well_configured(language, verbose)
%MEX_WELL_CONFIGURED verifies whether MEX is well configured by testing it on the official example.
% At return,
% success = 1 means MEX compiles the example successfully and the resultant MEX file works well.
% success = 0 means MEX cannot compile the example or the resultant MEX file does not work.
% success = -1 means either we cannot try MEX on the example file because such a file is not found,
% or the MEX file of the example file works but the result is incorrect.

verbose = (nargin >=2 && verbose);

success = 1;

orig_warning_state = warning;
warning('off','all'); % We do not want to see warnings

callstack = dbstack;
funname = callstack(1).name; % Name of the current function

% Locate example_file, which is an example provided by MATLAB for trying MEX.
% NOTE: MATLAB MAY CHANGE THE LOCATION OF THIS FILE IN THE FUTURE.
switch lower(language)
case 'fortran'
    example_file_name = 'timestwo.F';
case {'c', 'c++', 'cpp'}
    example_file_name = 'timestwo.c';
otherwise
    error(sprintf('%s:UnsupportedLang', funname), '%s: Language ''%s'' is not supported by %s.', funname, language, funname);
end