code: def test_qnode_transform_program(mocker):
      """Test that qnode transforms are applied before drawing a circuit."""
  
      @qml.compile
      @qml.qnode(qml.device("default.qubit"))
      def circuit():
          qml.RX(1.1, 0)
          qml.RX(2.2, 0)
          return qml.state()
  
      draw_qnode = qml.draw_mpl(circuit, decimals=2)
      qnode_transform = circuit.transform_program[0]
      spy = mocker.spy(qnode_transform, "_transform")
  
      _ = draw_qnode()
      spy.assert_called_once()
  
imports: import pytest
  import pennylane
label_desc: Use image node_id 9 for calling a global function with example usage: test_qnode_transform_program(mocker) and returns: qml