class_docstr: Test situations with nested tapes.
docstr: Test max length passes to recursive tapes.
docstr_tok: ["Test","max","length","passes","to","recursive","tapes","."]
code: def test_nested_tapes_max_length(self):
      """Test max length passes to recursive tapes."""
  
      with QuantumTape() as _tape:
          qml.PauliX(0)
          with QuantumTape():
              for _ in range(10):
                  qml.PauliX(0)
  
      expected = "0: ──X──Tape:0─┤  \n\nTape:0\n0: ──X──X──X──X──X\n\n───X──X──X──X──X─┤  "
  
      out = tape_text(_tape, max_length=20)
      assert out == expected
      assert max(len(s) for s in out.split("\n")) <= 20
  
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 5 for calling the TestNestedTapes obj's underlying member method code with example usage: obj.test_nested_tapes_max_length() without return types