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: bnii_read.m
    path of file: ./repos/bspm/nii
    
    the code of the file until where you have to start completion: function [img, hdr] = bnii_read(fname, varargin)
% BNII_READ Uses NII_TOOL to read NifTI images
%
%  USAGE: [img, hdr] = bnii_read(fname, varargin)  
%

    
function [img, hdr] = bnii_read(fname, varargin)
% BNII_READ Uses NII_TOOL to read NifTI images
%
%  USAGE: [img, hdr] = bnii_read(fname, varargin)  
%

% ---------------------- Copyright (C) 2015 Bob Spunt ----------------------
%	Created:  2015-04-03
%	Email:     spunt@caltech.edu
% __________________________________________________________________________
def = { ... 
	'reshapeflag',		0     ...
	};
vals = setargs(def, varargin);
if nargin < 1, mfile_showhelp; fprintf('\t| - VARARGIN DEFAULTS - |\n'); disp(vals); return; end