function pathItem = getPathItem(~, blockObject)
%% GETPATHITEM returns path item given a block object 

% Copyright 2018-2019 The MathWorks, Inc.

    autoscaleExtensions =  SimulinkFixedPoint.EntityAutoscalersInterface.getInterface();
    autoscaler = autoscaleExtensions.getAutoscaler(blockObject);
    pathItem = autoscaler.getPortMapping(blockObject, [], 1);

    % Blocks which do not have any entity autoscaler will return empty path item. 
    % e.g. MATLAB System block 
    if isempty(pathItem)
        pathItem = '1';
    end
end
