class_docstr: Tests for state vector projector observable.
class_docstr_tok: ["Tests","for","state","vector","projector","observable","."]
docstr: Test we obtain the correct label whenever "matrices" keyowrd is not in cache.
docstr_tok: ["Test","we","obtain","the","correct","label","whenever","``","matrices","''","keyowrd","is","not","in","cache","."]
code: def test_label_matrices_not_in_cache(self, projector):
      """Test we obtain the correct label whenever "matrices" keyowrd is not in cache."""
      assert projector.label(cache={}) == "P"
  
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 4 for calling the TestStateVectorProjector obj's underlying member method code with example usage: obj.test_label_matrices_not_in_cache(projector) without return types