code: def test_draw_with_qfunc_with_measurements():
      """Test a non-qnode qfunc with measurements can be drawn."""
  
      def qfunc(x):
          qml.RX(x, wires=[0])
          qml.CNOT([0, 1])
          return qml.expval(qml.PauliZ(1))
  
      assert (
          qml.draw(qfunc)(1.1)
          == "0: ──RX(1.10)─╭●─┤     \n1: ───────────╰X─┤  <Z>"
      )
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.drawer import draw
label_desc: Use image node_id 6 for calling a global function with example usage: test_draw_with_qfunc_with_measurements() and returns: qml