class_docstr: Tests for the sample function
class_docstr_tok: ["Tests","for","the","sample","function"]
docstr: Test that we can provide no observable and no wires to sample function
docstr_tok: ["Test","that","we","can","provide","no","observable","and","no","wires","to","sample","function"]
code: def test_providing_no_observable_and_no_wires(self):
      """Test that we can provide no observable and no wires to sample function"""
      dev = qml.device("default.qubit", wires=2, shots=1000)
  
      @qml.qnode(dev)
      def circuit():
          qml.Hadamard(wires=0)
          res = qml.sample()
          assert res.obs is None
          assert res.wires == qml.wires.Wires([])
          return res
  
      circuit()
  
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 14 for calling the TestSample obj's underlying member method code with example usage: obj.test_providing_no_observable_and_no_wires() and returns: res