class_docstr: Test the cond double-wire drawing function.
class_docstr_tok: ["Test","the","cond","double-wire","drawing","function","."]
docstr: Test cond when the conditional operation is above the control wires.
docstr_tok: ["Test","cond","when","the","conditional","operation","is","above","the","control","wires","."]
code: def test_cond_two_ctrl_wires_upward(self):
      """Test cond when the conditional operation is above the control wires."""
      drawer = MPLDrawer(n_wires=3, n_layers=2)
      drawer.cond(
          layer=1, measured_layer=0, wires=[1, 2], wires_target=[0]
      )
      actual_data = [line.get_data() for line in drawer.ax.lines]
      assert actual_data == [
          ((-1, 2), (0, 0)),
          ((-1, 2), (1, 1)),
          ((-1, 2), (2, 2)),
          ((0.375, 1.03), (2.03, 2.03)),
          ((0.375, 0.97), (1.97, 1.97)),
          ((1.03, 1.03), (2.03, 0)),
          ((0.97, 0.97), (0.97, 0)),
          ((0.97, 0.97), (1.03, 1.97)),
          ((0.375, 0.97), (0.97, 0.97)),
          ((0.375, 0.97), (1.03, 1.03)),
      ]
      plt.close()
  
imports: import warnings
  import pytest
  from matplotlib.colors import to_rgba
  from matplotlib.patches import FancyArrow
  from pennylane.drawer import MPLDrawer
  from pennylane.math import allclose
label_desc: Use image node_id 3 for calling the TestCond obj's underlying member method code with example usage: obj.test_cond_two_ctrl_wires_upward() without return types