class_docstr: Test the max_length keyword.
docstr: Test several custom max_length parameters change the wrapping length.
docstr_tok: ["Test","several","custom","max_length","parameters","change","the","wrapping","length","."]
code: def test_setting_max_length(self, ml):
      """Test several custom max_length parameters change the wrapping length."""
  
      with qml.queuing.AnnotatedQueue() as q_tape_ml:
          for _ in range(10):
              qml.PauliX(0)
              qml.PauliY(1)
  
          for _ in range(3):
              qml.sample()
  
      tape_ml = qml.tape.QuantumScript.from_queue(q_tape_ml)
      out = tape_text(tape_ml, max_length=ml)
      assert max(len(s) for s in out.split("\n")) <= ml
  
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 2 for calling the TestMaxLength obj's underlying member method code with example usage: obj.test_setting_max_length(ml) without return types