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: interform.m
    path of file: ./repos/prima/benchmark/rescue_idz/matlab/setup_tools
    
    the code of the file until where you have to start completion: function interform(directory)
%INTERFORM refactors the Fortran files in `directory` into the "intersection form" and save them in
% outputdir under directory. We also refactor the files in the subdirectories and subsubdirectories
% of `directory`, and save the refactored files in the corresponding subdirectories and
% subsubdirectories of `outputdir`. We do not go further down to subsubsubdirectories etc.
% See http://fortranwiki.org/fortran/show/Continuation+lines for details.
%
% Coded by Zaikun ZHANG (www.zhangzk.net) in August, 2020.

% Output directory
outputdir = '.interform';  % The leading dot makes the directory hidden on Linux systems.


    
function interform(directory)
%INTERFORM refactors the Fortran files in `directory` into the "intersection form" and save them in
% outputdir under directory. We also refactor the files in the subdirectories and subsubdirectories
% of `directory`, and save the refactored files in the corresponding subdirectories and
% subsubdirectories of `outputdir`. We do not go further down to subsubsubdirectories etc.
% See http://fortranwiki.org/fortran/show/Continuation+lines for details.
%
% Coded by Zaikun ZHANG (www.zhangzk.net) in August, 2020.

% Output directory
outputdir = '.interform';  % The leading dot makes the directory hidden on Linux systems.

% Time stamp
time_stamp = datestr(datetime(), 'yymmdd.HH:MM:SS');

% Do not perform refactoring in these subdirectories (if exist)
ignoredir = {'original', 'backup', '.interform', 'trash', 'example', 'examples', 'test', 'tests', 'results', 'test_data', 'bak', 'bakf90'};

% Ignore the following files
ignorefiles = {'calfun__genmod.f90', 'mexfunction__genmod.f90', 'test.f'};

% "directory" can be given by a full path or a path relative to the
% current directory. The following lines get its full path.
if nargin < 1
    directory = pwd();  % When "directory" is not given, we default it to the current directory
end