def METHOD_NAME(self, tape, output):
    """Tests that the sign_expand transform returns the correct value as a transform program
    if we do not calculate analytical expectation values of groups but rely on their circuit approximations
    """
    @functools.partial(qml.transforms.sign_expand, circuit=True)
    @qml.qnode(dev)
    def qnode():
        for op in tape.operations:
            qml.apply(op)
        return qml.apply(tape.measurements[0])
    expval = qnode()
    assert np.isclose(output, expval, 1e-2)
    # as these are approximations, these are only correct up to finite precision