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: CBIG_HungarianClusterMatchSurfWrapper.m
    path of file: ./repos/CBIG/utilities/matlab/parcellation
    
    the code of the file until where you have to start completion: function CBIG_HungarianClusterMatchSurfWrapper(ref_file, input_file, output_file)

    
function CBIG_HungarianClusterMatchSurfWrapper(ref_file, input_file, output_file)

% CBIG_HungarianClusterMatchSurfWrapper(ref_file, input_file, output_file)
%
% This is the wrapper function of surface labels Hungarian matching.
%
% Given a reference file name, this function match labels of input file
% with the reference file.
%
% Reference file and input file are .mat file on surface, and they should  
% have "lh_labels" and "rh_labels" fields.
%
% Written by CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md



ref_labels = load(ref_file);
input_labels = load(input_file);

[labels, assign, cost, dice_overlap] = CBIG_HungarianClusterMatch([ref_labels.lh_labels; ref_labels.rh_labels], [input_labels.lh_labels; input_labels.rh_labels]);
disp(num2str(cost));
disp(num2str(dice_overlap));

lh_labels = labels(1:length(input_labels.lh_labels));
rh_labels = labels(length(input_labels.lh_labels)+1:end