class_docstr: Test the handling of matrix-valued parameters.
docstr: Providing an existing matrix cache determines numbering order of matrices.
  All matrices printed out regardless of use.
docstr_tok: ["Providing","an","existing","matrix","cache","determines","numbering","order","of","matrices",".","All","matrices","printed","out","regardless","of","use","."]
code: def test_matrix_parameters_provided_cache(self):
      """Providing an existing matrix cache determines numbering order of matrices.
      All matrices printed out regardless of use."""
  
      cache = {"matrices": [np.eye(2), -np.eye(3)]}
  
      expected = (
          "0: ─╭|Ψ⟩──U(M0)─┤  <𝓗(M0)>\n"
          "1: ─╰|Ψ⟩────────┤         \n"
          "M0 = \n[[1. 0.]\n [0. 1.]]\n"
          "M1 = \n[[-1. -0. -0.]\n [-0. -1. -0.]\n [-0. -0. -1.]]"
      )
  
      assert (
          tape_text(tape_matrices, show_matrices=True, cache=cache)
          == 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 3 for calling the TestShowMatrices obj's underlying member method code with example usage: obj.test_matrix_parameters_provided_cache() without return types