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: get_metadata.m
    path of file: ./repos/bids-matlab/+bids/+internal
    
    the code of the file until where you have to start completion: function meta = get_metadata(metafile)
  %
  % Read a BIDS's file metadata according to the inheritance principle.
  %
  % USAGE::
  %
  %    meta = bids.internal.get_metadata(metafile)
  %
  % :param metafile: list of full
    
function struct_one = update_metadata(struct_one, struct_two, file)
  if isempty(struct_two)
    return
  elseif ~isstruct(struct_two)
    bids.internal.error_handling( ...
                                 mfilename(), ...
                                 'WrongInputType', ...
                                 sprintf('Input was neither struct nor empty for file:\n%s', ...
                                         file), ...
                                 false);
  end