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: getdict.m
    path of file: ./repos/spm12/@gifti/private
    
    the code of the file until where you have to start completion: function d = getdict
% Dictionary of GIfTI/NIfTI stuff
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging

% Guillaume Flandin
% $Id: getdict.m 7379 2018-07-25 09:11:24Z guillaume $

persistent dict;
if ~isempty(dict)
    d = dict;
    return;
end

table = {...
    'NIFTI_TYPE_UINT8',   'uint8',   '%d', @uint8,  'uint8'
    'NIFTI_TYPE_INT8',    'int8',    '%d', @int8,   'int8'
    'NIFTI_TYPE_UINT16',  'uint16',  '%d', @uint16, 'uint16'
    'NIFTI_TYPE_INT16',   'int16',   '%d', @int16,  'int16'

    
function d = getdict
% Dictionary of GIfTI/NIfTI stuff
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging

% Guillaume Flandin
% $Id: getdict.m 7379 2018-07-25 09:11:24Z guillaume $

persistent dict;
if ~isempty(dict)
    d = dict;
    return;
end

table = {...
    'NIFTI_TYPE_UINT8',   'uint8',   '%d', @uint8,  'uint8'
    'NIFTI_TYPE_INT8',    'int8',    '%d', @int8,   'int8'
    'NIFTI_TYPE_UINT16',  'uint16',  '%d', @uint16, 'uint16'
    'NIFTI_TYPE_INT16',   'int16',   '%d', @int16,  'int16'
    'NIFTI_TYPE_UINT32',  'uint32',  '%d', @uint32, 'uint32' 
    'NIFTI_TYPE_INT32',   'int32',   '%d', @int32,  'int32' 
    'NIFTI_TYPE_FLOAT32', 'float32', '%f', @single, 'single'
    'NIFTI_TYPE_FLOAT64', 'float64', '%f', @double, 'double'};

for i=1:size(table,1)
    dict.(table{i,1}) = cell2struct({table{i,2:end}},...
        {'class', 'format', 'conv', 'cast'}, 2);
end