class_docstr: Tests various properties of the Shots class.
docstr: Tests that Shots instances are frozen after creation.
docstr_tok: ["Tests","that","Shots","instances","are","frozen","after","creation","."]
code: def test_Shots_frozen_after_init(self):
      """Tests that Shots instances are frozen after creation."""
      shots = Shots(10)
      with pytest.raises(
          AttributeError, match="Shots is an immutable class"
      ):
          shots.total_shots = 20
  
imports: import copy
  import pytest
  from pennylane.measurements import Shots, ShotCopies
label_desc: Use image node_id 2 for calling the TestProperties obj's underlying member method code with example usage: obj.test_Shots_frozen_after_init() without return types