class_docstr: Tests the Shots class.
docstr: Tests that all other values for shots is not allowed.
docstr_tok: ["Tests","that","all","other","values","for","shots","is","not","allowed","."]
code: def test_other_fails(self, shot_arg):
      """Tests that all other values for shots is not allowed."""
      with pytest.raises(ValueError, match=ERROR_MSG):
          _ = Shots(shot_arg)
  
imports: import copy
  import pytest
  from pennylane.measurements import Shots, ShotCopies
label_desc: Use image node_id 14 for calling the TestShotsConstruction obj's underlying member method code with example usage: obj.test_other_fails(shot_arg) without return types