class_docstr: Tests for the SampleMeasurement class.
class_docstr_tok: ["Tests","for","the","SampleMeasurement","class","."]
docstr: Test that process_counts is not implemented by default.
docstr_tok: ["Test","that","process_counts","is","not","implemented","by","default","."]
code: def test_process_counts_not_implemented(self):
      """Test that process_counts is not implemented by default."""
  
      class MyMeasurement(SampleMeasurement):
          # pylint: disable=signature-differs
          def process_samples(
              self, samples, wire_order, shot_range, bin_size
          ):
              return qml.math.sum(samples[..., self.wires])
  
          @property
          def return_type(self):
              return Sample
  
      m = MyMeasurement(wires=[0])
      with pytest.raises(NotImplementedError):
          m.process_counts({"0": 10}, wire_order=qml.wires.Wires(0))
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import ClassicalShadowMP, Counts, CountsMP, Expectation, ExpectationMP, MeasurementProcess, MeasurementTransform, MeasurementValue, MidMeasure, MidMeasureMP, MutualInfoMP, PurityMP, Probability, ProbabilityMP, Sample, SampleMeasurement, SampleMP, ShadowExpvalMP, Shots, State, StateMeasurement, StateMP, Variance, VarianceMP, VnEntropyMP, expval, sample, var
  from pennylane.operation import DecompositionUndefinedError
  from pennylane.queuing import AnnotatedQueue
  from pennylane.wires import Wires
label_desc: Use image node_id 3 for calling the TestSampleMeasurement obj's underlying member method code with example usage: obj.test_process_counts_not_implemented() and returns: qml, Sample