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: mne_write_cov_file.m
    path of file: ./repos/bspm/thirdparty/spm12/external/mne
    
    the code of the file until where you have to start completion: function mne_write_cov_file(fname,cov)
%
%   function mne_write_cov_file(name,cov)
%
%   Write a complete fif file containing a covariance matrix
%
%   fname    filename
%   cov      the covariance matrix to write
%
%

%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
%   Revision 1.3  2008/10/10 16:13:57  msh
%   Added mne_ex_read_epochs. Fixed help text of mne_write_cov_file.m
%
%   Revision 1.2  2006/05/03 18:53:06  msh
%   Approaching Matlab 6.5 backward compatibility
%
%   Revision 1.1  2006/04/29 12:44:10  msh
%   Added covariance matrix writing routines.
%
%

me='MNE:mne_write_cov_file';

    
function mne_write_cov_file(fname,cov)
%
%   function mne_write_cov_file(name,cov)
%
%   Write a complete fif file containing a covariance matrix
%
%   fname    filename
%   cov      the covariance matrix to write
%
%

%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
%   Revision 1.3  2008/10/10 16:13:57  msh
%   Added mne_ex_read_epochs. Fixed help text of mne_write_cov_file.m
%
%   Revision 1.2  2006/05/03 18:53:06  msh
%   Approaching Matlab 6.5 backward compatibility
%
%   Revision 1.1  2006/04/29 12:44:10  msh
%   Added covariance matrix writing routines.
%
%

me='MNE:mne_write_cov_file';

global FIFF;
if isempty(FIFF)
   FIFF = fiff_define_constants();
end