class_docstr: Tests for the auxiliary function to return the eigenvalues for Paulis
class_docstr_tok: ["Tests","for","the","auxiliary","function","to","return","the","eigenvalues","for","Paulis"]
docstr: Test that the right number of cachings have been executed after clearing the cache
docstr_tok: ["Test","that","the","right","number","of","cachings","have","been","executed","after","clearing","the","cache"]
code: def test_cache_usage(self, depth):
      """Test that the right number of cachings have been executed after clearing the cache"""
      pu.pauli_eigs.cache_clear()
      pu.pauli_eigs(depth)
      assert (
          functools._CacheInfo(depth - 1, depth, 128, depth)
          == pu.pauli_eigs.cache_info()
      )
  
imports: import functools
  import itertools
  import pytest
  import numpy
  import pennylane
  import pennylane.utils
label_desc: Use image node_id 4 for calling the TestPauliEigs obj's underlying member method code with example usage: obj.test_cache_usage(depth) without return types