class_docstr: Tests the Shots class.
docstr: Tests that creating a Shots from another Shots instance returns the same instance.
docstr_tok: ["Tests","that","creating","a","Shots","from","another","Shots","instance","returns","the","same","instance","."]
code: def test_copy(self):
      """Tests that creating a Shots from another Shots instance returns the same instance."""
      x = Shots(123)
      y = Shots(x)
      assert y is x
      assert y._frozen  # pylint:disable=protected-access
  
      z = copy.copy(x)
      assert z is x
      assert z._frozen
  
imports: import copy
  import pytest
  from pennylane.measurements import Shots, ShotCopies
label_desc: Use image node_id 1 for calling the TestShotsConstruction obj's underlying member method code with example usage: obj.test_copy() without return types