class_docstr: Tests the Shots class.
docstr: Test that the hash function behaves correctly
docstr_tok: ["Test","that","the","hash","function","behaves","correctly"]
code: def test_hash(self):
      """Test that the hash function behaves correctly"""
      for s in self.shot_data:
          hash_s = hash(s)
          assert hash_s == hash(copy.copy(s))
          assert hash_s == hash(
              Shots(s.shot_vector if s.shot_vector else None)
          )
  
imports: import copy
  import pytest
  from pennylane.measurements import Shots, ShotCopies
label_desc: Use image node_id 10 for calling the TestShotsConstruction obj's underlying member method code with example usage: obj.test_hash() without return types