class_docstr: Tests the gates with special drawing methods.
class_docstr_tok: ["Tests","the","gates","with","special","drawing","methods","."]
docstr: Tests MidMeasureMP has correct special handling.
code: def test_MidMeasureMP(self):
      """Tests MidMeasureMP has correct special handling."""
      m = qml.measure(0)
      tape = QuantumScript(m.measurements)
      _, ax = tape_mpl(tape)
      assert [l.get_data() for l in ax.lines] == [((-1, 1), (0, 0))]
      assert len(ax.patches) == 3
  
      assert ax.patches[0].get_x() == -0.175
      assert ax.patches[0].get_y() == -0.175
      plt.close()
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 12 for calling the TestSpecialGates obj's underlying member method code with example usage: obj.test_MidMeasureMP() without return types