class_docstr: Tests for the sample function
class_docstr_tok: ["Tests","for","the","sample","function"]
docstr: Test that using ``qml.sample`` with an empty wire list raises an error.
docstr_tok: ["Test","that","using","``","qml.sample","``","with","an","empty","wire","list","raises","an","error","."]
code: def test_sample_empty_wires(self):
      """Test that using ``qml.sample`` with an empty wire list raises an error."""
      with pytest.raises(
          ValueError, match="Cannot set an empty list of wires."
      ):
          qml.sample(wires=[])
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementShapeError, Sample, Shots
  from pennylane.operation import EigvalsUndefinedError, Operator
label_desc: Use image node_id 23 for calling the TestSample obj's underlying member method code with example usage: obj.test_sample_empty_wires() without return types