function validateOutputs(data, scope) {
    const invalids = [];

    data.groups[0].outputs.forEach((dataOutput) => {
        const matchOutput = scope.Output.find((simulatorOutput) => simulatorOutput.label.trim() === dataOutput.label.trim());

        if (matchOutput === undefined) {
            invalids.push({
                type: VALIDATION_ERRORS.NOTPRESENT,
                identifier: dataOutput.label.trim(),
                message: 'Output is not present in the circuit',
            });
        } else if (matchOutput.bitWidth !== dataOutput.bitWidth) {
            invalids.push({
                type: VALIDATION_ERRORS.WRONGBITWIDTH,
                identifier: dataOutput.label.trim(),
                extraInfo: {
                    element: matchOutput,
                    expectedBitWidth: dataOutput.bitWidth,
                },
                message: `Output bitwidths don't match in circuit and test (${matchOutput.bitWidth} vs ${dataOutput.bitWidth})`,
            });
        }
    });

    if (invalids.length > 0) return { ok: false, invalids };
    return { ok: true };
}
Validates presence and bitwidths of test outputs in the circuit.
Called by validate()
@param {Object} data - Object containing Test Data
@param {Scope} scope - the circuit