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: read_hdr.m
    path of file: ./repos/bspm/thirdparty/MIALAB/LUI_0.2
    
    the code of the file until where you have to start completion: function vol = read_hdr(fname)
% Get a variety of information from a NIFTI-1 header.
% FORMAT vol = read_hdr(fname)
% fname - filename of image
% vol   - various bits of information

    
function vol = read_hdr(fname)
% Get a variety of information from a NIFTI-1 header.
% FORMAT vol = read_hdr(fname)
% fname - filename of image
% vol   - various bits of information
% _______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience

%
% $Id: read_hdr.m 922 2007-09-19 15:28:30Z john $


persistent d
if isempty(d), d = getdict; end