class_docstr: Test the cond double-wire drawing function.
class_docstr_tok: ["Test","the","cond","double-wire","drawing","function","."]
docstr: Tests cond raises an error when the wires aren't neatly separated.
docstr_tok: ["Tests","cond","raises","an","error","when","the","wires","are","n't","neatly","separated","."]
code: def test_cond_fail_with_bad_order(self, ctrl_wires, target_wires):
      """Tests cond raises an error when the wires aren't neatly separated."""
      drawer = MPLDrawer(n_wires=4, n_layers=2)
      with pytest.raises(
          ValueError,
          match="Cannot draw interspersed mid-circuit measurements",
      ):
          drawer.cond(
              layer=1,
              measured_layer=0,
              wires=ctrl_wires,
              wires_target=target_wires,
          )
      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 4 for calling the TestCond obj's underlying member method code with example usage: obj.test_cond_fail_with_bad_order(ctrl_wires, target_wires) without return types