code: def test_hermitian_labelling_w_cache():
      """Test hermitian matrix interacts with matrix cache provided to label."""
  
      op = qml.Hermitian(X, wires=0)
  
      cache = {"matrices": [Z]}
      assert op.label(cache=cache) == "𝓗(M1)"
      assert qml.math.allclose(cache["matrices"][1], X)
  
      cache = {"matrices": [Z, Y, X]}
      assert op.label(cache=cache) == "𝓗(M2)"
      assert len(cache["matrices"]) == 3
  
imports: import functools
  import pickle
  import pytest
  import numpy
  from gate_data import I, X, Y, Z, H
  import pennylane
  from pennylane.ops.qubit.observables import BasisStateProjector, StateVectorProjector
label_desc: Use image node_id 3 for calling a global function with example usage: test_hermitian_labelling_w_cache() without return types