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: funargname.m
    path of file: ./repos/spm/external/fieldtrip/utilities/private
    
    the code of the file until where you have to start completion: function [input, output] = funargname(fname)

% FUNARGNAME returns the input and output arguments of the function
% by parsing the m-file
%
% Use as
%    [input, output] = funargname(fname)
% where the input and output function arguments will be returned
% as cell-arrays containing strings.

fid = fopen(which(fname), 'r');

    
function [input, output] = funargname(fname)

% FUNARGNAME returns the input and output arguments of the function
% by parsing the m-file
%
% Use as
%    [input, output] = funargname(fname)
% where the input and output function arguments will be returned
% as cell-arrays containing strings.

fid = fopen(which(fname), 'r');
line = '';
while isempty(regexp(line, '^function', 'once')) && ~feof(fid)
  line = fgetl(fid);
end