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: icatb_groupBackReconInfo.m
    path of file: ./repos/gift/GroupICAT/icatb/icatb_helper_functions
    
    the code of the file until where you have to start completion: function [tcInfo, icInfo] = icatb_groupBackReconInfo(sesInfo, W)

j = sesInfo.numReductionSteps;

% Use size of Weights matrix instead of numComp to handle Constrained
% ICA (Spatial)

    
function [tcInfo, icInfo] = icatb_groupBackReconInfo(sesInfo, W)

j = sesInfo.numReductionSteps;

% Use size of Weights matrix instead of numComp to handle Constrained
% ICA (Spatial)
icInfo = {eye(size(W, 2), size(W, 2))};
tcInfo = icInfo;

%% Load higher level data reduction files
while (j > 1)
    
    numGroupsAfterCAT = sesInfo.reduction(j).numOfGroupsAfterCAT;
    numOfPCBeforeCAT = sesInfo.reduction(j).numOfPCBeforeCAT;
    numOfPrevGroupsInEachNewGroupAfterCAT = sesInfo.reduction(j).numOfPrevGroupsInEachNewGroupAfterCAT;
    
    tmpICInfo = cell(1, sum(numOfPrevGroupsInEachNewGroupAfterCAT));
    tmpTCInfo = tmpICInfo;
    
    countN = 0;
    %% Loop over no. of groups after concatenation
    for groupIndex = 1:numGroupsAfterCAT
        
        %% Load jth pca step file
        pcain = [sesInfo.data_reduction_mat_file, num2str(j), '-', num2str(groupIndex), '.mat'];
        fileIn = fullfile(sesInfo.outputDir, pcain);
        
        if (~exist(fileIn, 'file'))
            error(['File ', fileIn, ' doesn''t exist. Please set CONSERVE_DISK_SPACE in icatb_defaults.m to 0 or 1 prior to running setup analysis tool.']);
        end