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: test_notification.m
    path of file: ./repos/fieldtrip/test
    
    the code of the file until where you have to start completion: function test_notification

% WALLTIME 00:10:00
% MEM 1gb
% DEPENDENCY ft_debug ft_info ft_notice ft_warning ft_error ft_notification
% DATA no

subfunction(@ft_debug)
subfunction(@ft_info)
subfunction(@ft_notice)
subfunction(@ft_warning)

% ft_error cannot be tested the same way, since the error stops everything
errortest

oncetest(@ft_debug)
oncetest(@ft_info)
oncetest(@ft_notice)
oncetest(@ft_warning)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function oncetest(notice)

global ft_default
ft_default = [];

for i=1:10

    
function test_notification

% WALLTIME 00:10:00
% MEM 1gb
% DEPENDENCY ft_debug ft_info ft_notice ft_warning ft_error ft_notification
% DATA no

subfunction(@ft_debug)
subfunction(@ft_info)
subfunction(@ft_notice)
subfunction(@ft_warning)

% ft_error cannot be tested the same way, since the error stops everything
errortest

oncetest(@ft_debug)
oncetest(@ft_info)
oncetest(@ft_notice)
oncetest(@ft_warning)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function oncetest(notice)

global ft_default
ft_default = [];

for i=1:10
  msgId = 'FieldTrip:test:test_notification:suboncetest';
  notice('once', msgId)
  notice(msgId, 'this should be printed only once for each notification level')
end


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function errortest

try
  ft_error('off');        % this should not make a difference
  ft_error('something');  % note that the line number is used further down
  ok = false;
catch
  me = ft_error('last')
  assert(strcmp(me.message, 'something'))
  ok = true;
end