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

% MEM 1gb
% WALLTIME 00:10:00
% DEPENDENCY ft_topoplotER ft_topoplotTFR ft_topoplotIC
% DATA private

% this script tests the functionality of ft_topoplotER with respect to the
% different input datatypes. no other functionality is tested.
% the script has been written in order to test a clean up of the code

filename = dccnpath('/home/common/matlab/fieldtrip/data/test/latest/raw/eeg/preproc_neuroscan16.mat');
load(filename)

%there's an unresolved issue with duplicate labels 'FREE'
%FIXME
data.label{1} = 'FREE1';
data.label{2} = 'FREE2';
data.label{3} = 'FREE3';
data.label{4} = 'FREE4';

cfg = [];
cfg.preproc.demean = 'yes';
tlck = ft_timelockanalysis(cfg, data);

cfg = [];
cfg.layout = 'biosemi64.lay';
lay = ft_prepare_layout(cfg);

cfg        = [];
cfg.layout = lay;
cfg.interactive = 'yes';

%plot timelocked-data
figure; ft_topoplotER(cfg, tlck);drawnow

%reproduce bug 1239
cfgtmp = cfg;
cfgtmp.highlight = 'on';
cfgtmp.highlightchannel = {};
figure; ft_topoplotER(cfgtmp, tlck);drawnow

%plot subplots
cfg.xlim = (-1:0.25:1);
figure; ft_topoplotER(cfg, tlck);drawnow
cfg = rmfield(cfg, 'xlim');

%create component-data
cfgc = [];
cfgc.method = 'pca';
comp = ft_componentanalysis(cfgc, data);

%plot component-data
cfg.interactive = 'no';
cfg.component   = 1:10;
figure; ft_topoplotIC(cfg, comp);drawnow

cfg.component   = 5;
figure; ft_topoplotIC(cfg, comp);drawnow

%create frequency-data
cfgf = [];
cfgf.method = 'mtmfft';
cfgf.foilim = [0 100];
cfgf.taper  = 'hanning';
cfgf.output = 'pow';
freq = ft_freqanalysis(cfgf, data);

%plot frequency-data
cfg.interactive = 'yes';
%cfg = rmfield(cfg, 'component');
figure; ft_topoplotER(cfg, freq);drawnow

%create connectivity-data

    
function test_ft_topoplotER

% MEM 1gb
% WALLTIME 00:10:00
% DEPENDENCY ft_topoplotER ft_topoplotTFR ft_topoplotIC
% DATA private

% this script tests the functionality of ft_topoplotER with respect to the
% different input datatypes. no other functionality is tested.
% the script has been written in order to test a clean up of the code

filename = dccnpath('/home/common/matlab/fieldtrip/data/test/latest/raw/eeg/preproc_neuroscan16.mat');
load(filename)

%there's an unresolved issue with duplicate labels 'FREE'
%FIXME
data.label{1} = 'FREE1';
data.label{2} = 'FREE2';
data.label{3} = 'FREE3';
data.label{4} = 'FREE4';

cfg = [];
cfg.preproc.demean = 'yes';
tlck = ft_timelockanalysis(cfg, data);

cfg = [];
cfg.layout = 'biosemi64.lay';
lay = ft_prepare_layout(cfg);

cfg        = [];
cfg.layout = lay;
cfg.interactive = 'yes';

%plot timelocked-data
figure; ft_topoplotER(cfg, tlck);drawnow

%reproduce bug 1239
cfgtmp = cfg;
cfgtmp.highlight = 'on';
cfgtmp.highlightchannel = {};
figure; ft_topoplotER(cfgtmp, tlck);drawnow

%plot subplots
cfg.xlim = (-1:0.25:1);
figure; ft_topoplotER(cfg, tlck);drawnow
cfg = rmfield(cfg, 'xlim');

%create component-data
cfgc = [];
cfgc.method = 'pca';
comp = ft_componentanalysis(cfgc, data);

%plot component-data
cfg.interactive = 'no';
cfg.component   = 1:10;
figure; ft_topoplotIC(cfg, comp);drawnow

cfg.component   = 5;
figure; ft_topoplotIC(cfg, comp);drawnow

%create frequency-data
cfgf = [];
cfgf.method = 'mtmfft';
cfgf.foilim = [0 100];
cfgf.taper  = 'hanning';
cfgf.output = 'pow';
freq = ft_freqanalysis(cfgf, data);

%plot frequency-data
cfg.interactive = 'yes';
%cfg = rmfield(cfg, 'component');
figure; ft_topoplotER(cfg, freq);drawnow

%create connectivity-data
cfgf.output = 'fourier';
freq2 = ft_freqanalysis(cfgf, data);

cfgc2 = [];
cfgc2.method = 'coh';
cfgc2.channel = freq2.label(5:end