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: load.m
    path of file: ./repos/transformer-models/+gpt2
    
    the code of the file until where you have to start completion: function newParameters = load(filepath)
% load   Load GPT-2

    
function newParameters = load(filepath)
% load   Load GPT-2
%
%   parameters = load(filepath) will load a GPT-2 model from the directory
%   specified by filepath.

% Load the parameters
s = load(filepath);

% First, assign the hyperparameters and then remove them from the loaded
% structure.
newParameters = struct;
newParameters.Hyperparameters = s.hyperparameters;
s = rmfield(s, 'hyperparameters');

% Next, assign the weights
newParameters.Weights = struct;

originalWeightNames = fieldnames(s);
newWeightNames = erase(originalWeightNames, 'model_');

% Permute all of the weights to match the MATLAB format
for i = 1:numel(originalWeightNames)
    if startsWith(newWeightNames{i},'h')
        nameSplit = split(newWeightNames{i}, '_');
        newParameters.Weights.(char(nameSplit(1))).(char(join(nameSplit(2:end