def METHOD_NAME(self):
    """Tests that the layering function accepts Tensorflow variables."""
    import tensorflow as tf
    def unitary(param):
        qml.RX(param, wires=0)
    x = tf.Variable([0.1, 0.2, 0.3])
    with qml.tape.OperationRecorder() as rec:
        layer(unitary, 3, x)
    assert len(rec.operations) == 3
    for ii, op in enumerate(rec.operations):
        assert qml.math.allclose(op.parameters[0], x[ii])
        assert isinstance(op, qml.RX)