class_docstr: Tests for drawing mid-circuit measurements and classical conditions.
docstr: Test that collecting statistics on a single mid-circuit measurement
  works as expected.
docstr_tok: ["Test","that","collecting","statistics","on","a","single","mid-circuit","measurement","works","as","expected","."]
code: def test_single_meas_stats(self, mp, mp_label):
      """Test that collecting statistics on a single mid-circuit measurement
      works as expected."""
  
      def circ():
          qml.Hadamard(0)
          m0 = qml.measure(0)
          qml.Hadamard(0)
          return mp(op=m0)
  
      drawing = qml.draw(circ)()
      expected_drawing = (
          "0: ──H──┤↗├──H─┤  "
          + " " * len(mp_label)
          + f"\n         ╚═════╡  {mp_label}"
      )
  
      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 15 for calling the TestMidCircuitMeasurements obj's underlying member method code with example usage: obj.test_single_meas_stats(mp, mp_label) and returns: mp