class_docstr: Tests for the counts function
docstr: Test that the hash property includes the all_outcomes property.
docstr_tok: ["Test","that","the","hash","property","includes","the","all_outcomes","property","."]
code: def test_hash(self):
      """Test that the hash property includes the all_outcomes property."""
      m1 = qml.counts(all_outcomes=True)
      m2 = qml.counts(all_outcomes=False)
  
      assert m1.hash != m2.hash
  
      m3 = CountsMP(
          eigvals=[0.5, -0.5],
          wires=qml.wires.Wires(0),
          all_outcomes=True,
      )
      assert m3.hash != m1.hash
  
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 6 for calling the TestCounts obj's underlying member method code with example usage: obj.test_hash() without return types