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: arGetInfo.m
    path of file: ./repos/d2d/arFramework3/Subfunctions
    
    the code of the file until where you have to start completion: % [] = arGetInfo(jm, jd, jtype, linehandle_name)
%
% Get information of data (t, names, labels, values)
%
% jype = 1: get info of obersables y
% jype = 2: get info of states x
% jype = 3: get info of v

function [tUnits, response_parameter, titles, yNames, yLabel, iy, ...
    hys, hystds, hys
    
function [tUnits, response_parameter, titles, yNames, yLabel, iy, ...
    hys, hystds, hysss] = arGetInfo(jm, jd, jtype, linehandle_name)
global ar

if(isfield(ar.model(jm), 'data'))
    tUnits = ar.model(jm).data(jd).tUnits;
    response_parameter = ar.model(jm).data(jd).response_parameter;
else
    tUnits = ar.model(jm).tUnits;
    response_parameter = 'not assigned'; % TODO
end