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: sdearguments_process.m
    path of file: ./repos/SDETools/SDETools/private
    
    the code of the file until where you have to start completion: function [N,tspan,tdir,lt,y0,h,ConstStep,Stratonovich,RandFUN,ResetStream,...
          EventsFUN,EventsValue,OutputFUN,WSelect] ...
          = sdearguments_process(func,tspan,y0,dataType,options)
%SDEARGUMENTS_PROCESS  Process arguments for all SDE process functions.
%

    
function [N,tspan,tdir,lt,y0,h,ConstStep,Stratonovich,RandFUN,ResetStream,...
          EventsFUN,EventsValue,OutputFUN,WSelect] ...
          = sdearguments_process(func,tspan,y0,dataType,options)
%SDEARGUMENTS_PROCESS  Process arguments for all SDE process functions.
%
%   See also:
%       SDE_BM, SDE_GBM, SDE_OU, SDEARGUMENTS, SDEGET, SDEEVENTS, SDEZERO,
%       SDEOUTPUT, SDERESET_STREAM, FUNCTION_HANDLE
        
%   Andrew D. Horchler, horchler @ gmail . com, Created 4-4-12
%   Revision: 1.2, 5-3-13

%   sdearguments_process is partially based on an updating of version 1.12.4.15
%   of Matlab's ODEARGUMENTS.


% Check that tspan is internally consistent
lt = length(tspan);         % Number of time steps
if lt < 2
    error('SDETools:sdearguments_process:InvalidTSpanSize',...
          'Input vector TSPAN must have length >= 2.  See %s.',func);
end