class_docstr: Tests kernel methods to compute polarity.
class_docstr_tok: ["Tests","kernel","methods","to","compute","polarity","."]
docstr: Test number and order of calls of the kernel function when computing the
  polarity, assuming normalized diagonal kernel matrix entries.
docstr_tok: ["Test","number","and","order","of","calls","of","the","kernel","function","when","computing","the","polarity",",","assuming","normalized","diagonal","kernel","matrix","entries","."]
code: def test_correct_calls_normalized(self):
      """Test number and order of calls of the kernel function when computing the
      polarity, assuming normalized diagonal kernel matrix entries."""
      X = [0.1, 0.4]
      Y = [1, -1]
  
      hist = []
  
      kern.polarity(
          X,
          Y,
          lambda x1, x2: _mock_kernel(x1, x2, hist),
          assume_normalized_kernel=True,
      )
  
      assert hist == [(0.1, 0.4)]
  
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 2 for calling the TestKernelPolarity obj's underlying member method code with example usage: obj.test_correct_calls_normalized() without return types