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: ft_read_header.m
    path of file: ./repos/spm12/external/fieldtrip/fileio
    
    the code of the file until where you have to start completion: function [hdr] = ft_read_header(filename, varargin)

% FT_READ_HEADER reads header 
    
function did not supply enough channel labels');
  hdr.label{hdr.nChans} = [];
end

% Now, replace all empty labels with new name:
if any(cellfun(@isempty, hdr.label))
  ft_warning('channel labels should not be empty, creating unique labels');
  hdr.label = fix_empty(hdr.label);
end