docstr: Tests that the all_outcomes=True option for counts works with the
  qml.Hermitian observable
docstr_tok: ["Tests","that","the","all_outcomes=True","option","for","counts","works","with","the","qml.Hermitian","observable"]
code: def test_all_outcomes_hermitian(self):
      """Tests that the all_outcomes=True option for counts works with the
      qml.Hermitian observable"""
  
      n_shots = 10
      dev = qml.device("default.qubit", wires=2, shots=n_shots)
  
      A = np.array([[1, 0], [0, -1]])
  
      @qml.qnode(dev)
      def circuit(x):
          return qml.counts(
              qml.Hermitian(x, wires=0), all_outcomes=True
          )
  
      res = circuit(A)
  
      assert res == {-1.0: 0, 1.0: n_shots}
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import AllCounts, Counts, CountsMP
  from pennylane.wires import Wires
label_desc: Use image node_id 20 for calling the TestCountsIntegration obj's underlying member method code with example usage: obj.test_all_outcomes_hermitian() and returns: qml