def METHOD_NAME(self, shots):
    """Test the simplify method with a tape."""
    with qml.queuing.AnnotatedQueue() as q_tape:
        build_op()
    tape = QuantumScript.from_queue(q_tape, shots=shots)
    s_tape = qml.simplify(tape)
    assert len(s_tape) == 1
    s_op = s_tape[0]
    assert isinstance(s_op, qml.ops.Prod)  # pylint: disable=no-member
    assert s_op.data == simplified_op.data
    assert s_op.wires == simplified_op.wires
    assert s_op.arithmetic_depth == simplified_op.arithmetic_depth
    assert tape.shots == s_tape.shots