class_docstr: Test situations with nested tapes.
docstr: Test that tape numbering is determined by the `tape_offset` keyword of the cache.
docstr_tok: ["Test","that","tape","numbering","is","determined","by","the","`","tape_offset","`","keyword","of","the","cache","."]
code: def test_cache_keyword_tape_offset(self):
      """Test that tape numbering is determined by the `tape_offset` keyword of the cache."""
  
      with QuantumTape() as _tape:
          with QuantumTape():
              qml.PauliX(0)
  
      expected = "0: ──Tape:3─┤  \n\nTape:3\n0: ──X─┤  "
  
      assert tape_text(_tape, cache={"tape_offset": 3}) == 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 1 for calling the TestNestedTapes obj's underlying member method code with example usage: obj.test_cache_keyword_tape_offset() without return types