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: parse_varargin_SSQSM.m
    path of file: ./repos/sepia/misc/qsm_algorithm/SingleStep
    
    the code of the file until where you have to start completion: %% [lambda,magn,tol,maxiter,Kernel_Sizes]=parse_varargin_SSQSM(arg)
%
% Description: parser for qsmFANSI.m
%
% Kwok-shing Chan @ DCCN
% k.chan@donders.ru.nl
% Date created: 6 September 2017
% Date last modified: 26 September 2017
%
function [l
    
function [lambda,magn,tol,maxiter,Kernel_Sizes,b0dir]=parse_varargin_SSQSM(arg)
% function [B0,TE,lambda,magn,tol,maxiter,Kernel_Sizes]=parse_vararginSSQSM(arg)
% B0 = 3;
% TE = 1;             %second
lambda = 2.9e-2;
magn = [];
maxiter = 30;
tol = 1e-2;
Kernel_Sizes = 11:-2:3;
b0dir=[0,0,1];

if ~isempty(arg)
    for kvar = 1:length(arg)
%         if strcmpi(arg{kvar},'fieldStrength')
%             B0 = arg{kvar+1};
%         end