class_docstr: Tests for the counts function
docstr: Test that the ``__copy__`` method also copies the ``all_outcomes`` information.
docstr_tok: ["Test","that","the","``","__copy__","``","method","also","copies","the","``","all_outcomes","``","information","."]
code: def test_copy(self):
      """Test that the ``__copy__`` method also copies the ``all_outcomes`` information."""
      meas = qml.counts(wires=0, all_outcomes=True)
      meas_copy = copy.copy(meas)
      assert meas_copy.wires == Wires(0)
      assert meas_copy.all_outcomes is True
  
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 3 for calling the TestCounts obj's underlying member method code with example usage: obj.test_copy() without return types