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: symHessLag.m
    path of file: ./repos/OPTI/Utilities/opti
    
    the code of the file until where you have to start completion: function [hess,patte
    
function handle!');
end
if(isa(obj,'function_handle') && nargin(obj) ~= 1)
    error('Objective should only have one input argument (x)');
end
%If no constraints, then easy one - just use symHess
if(isempty(nlcon))
    [~,symhess] = symHess(obj,nvar,isTril,var);
    %Multiply by sigma
    symhess = sym('sigma')*symhess;
    %Return to function handle with 3 args
    hess = sym2func(symhess,sprintf('%s,sigma,lambda',var));
    return;
end