def METHOD_NAME(newout, oldout):
    checkkeys = [
        'background/time',
        'background/count',
        'background/stat',
        'foreground/ifar',
        'foreground/stat',
        'foreground/type'
    ]
    for ifo in ['H1', 'L1']:
        checkkeys += [
            f'foreground/{ifo}/snr',
            f'foreground/{ifo}/end_time',
            f'foreground/{ifo}/chisq',
            f'foreground/{ifo}/chisq_dof',
            f'foreground/{ifo}/coa_phase',
            f'foreground/{ifo}/sigmasq',
            f'foreground/{ifo}/template_id',
            f'foreground/{ifo}/stat'
        ]
    for key in checkkeys:
        if key not in newout:
            self.assertTrue(key not in oldout)
        else:
            self.assertTrue(key in oldout)
            if type(newout[key]) is np.ndarray:
                self.assertTrue(len(newout[key]) == len(oldout[key]))
                self.assertTrue(
                    numpy.isclose(newout[key], oldout[key]).all()
                )
            else:
                self.assertTrue(newout[key] == oldout[key])