class_docstr: Test situations with nested tapes.
docstr: Test wire order preserved in nested tapes.
docstr_tok: ["Test","wire","order","preserved","in","nested","tapes","."]
code: def test_nested_tapes_wire_order(self):
      """Test wire order preserved in nested tapes."""
  
      with QuantumTape() as _tape:
          qml.PauliX(0)
          qml.PauliY(1)
          with QuantumTape():
              qml.PauliX(0)
              qml.PauliY(1)
  
      expected = "1: ──Y─╭Tape:0─┤  \n0: ──X─╰Tape:0─┤  \n\nTape:0\n1: ──Y─┤  \n0: ──X─┤  "
  
      assert tape_text(_tape, wire_order=[1, 0]) == expected
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.drawer import tape_text
  from pennylane.drawer.tape_text import _add_grouping_symbols, _add_cond_grouping_symbols, _add_mid_measure_grouping_symbols, _add_cwire_measurement_grouping_symbols, _add_cwire_measurement, _add_measurement, _add_op, _Config
  from pennylane.tape import QuantumScript, QuantumTape
label_desc: Use image node_id 4 for calling the TestNestedTapes obj's underlying member method code with example usage: obj.test_nested_tapes_wire_order() without return types