class_docstr: Tests regularization/postprocessing methods.
class_docstr_tok: ["Tests","regularization\/postprocessing","methods","."]
docstr: Test displacing/shifting of eigenvalues of a matrix.
docstr_tok: ["Test","displacing\/shifting","of","eigenvalues","of","a","matrix","."]
code: def test_displace_matrix(self, input, expected_output):
      """Test displacing/shifting of eigenvalues of a matrix."""
      assert np.allclose(kern.displace_matrix(input), expected_output)
  
imports: import math
  import sys
  from functools import partial
  import pytest
  import numpy
  import pennylane
  import pennylane.kernels
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestRegularization obj's underlying member method code with example usage: obj.test_displace_matrix(input, expected_output) without return types