class_docstr: Tests for drawing mid-circuit measurements and classical conditions.
docstr: Test that collecting statistics and using classical conditions together
  on the same measurement works as expected.
docstr_tok: ["Test","that","collecting","statistics","and","using","classical","conditions","together","on","the","same","measurement","works","as","expected","."]
code: def test_single_cond_single_meas_stats(self):
      """Test that collecting statistics and using classical conditions together
      on the same measurement works as expected."""
  
      def circ():
          qml.Hadamard(0)
          m0 = qml.measure(0)
          qml.cond(m0, qml.PauliZ)(0)
          return qml.expval(m0)
  
      drawing = qml.draw(circ)()
      expected_drawing = (
          "0: ──H──┤↗├──Z─┤       \n         ╚═══╩═╡  <MCM>"
      )
  
      assert drawing == expected_drawing
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.drawer import draw
label_desc: Use image node_id 19 for calling the TestMidCircuitMeasurements obj's underlying member method code with example usage: obj.test_single_cond_single_meas_stats() and returns: qml