class_docstr: Tests for the sample function
class_docstr_tok: ["Tests","for","the","sample","function"]
docstr: Test that using ``qml.sample`` with no arguments returns the samples of all wires.
docstr_tok: ["Test","that","using","``","qml.sample","``","with","no","arguments","returns","the","samples","of","all","wires","."]
code: def test_sample_no_arguments(self, shots):
      """Test that using ``qml.sample`` with no arguments returns the samples of all wires."""
      dev = qml.device("default.qubit.legacy", wires=3, shots=shots)
  
      @qml.qnode(dev)
      def circuit():
          return qml.sample()
  
      res = circuit()
  
      # pylint: disable=comparison-with-callable
      assert res.shape == (shots, 3)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementShapeError, Sample, Shots, MeasurementValue
  from pennylane.operation import Operator
label_desc: Use image node_id 20 for calling the TestSample obj's underlying member method code with example usage: obj.test_sample_no_arguments(shots) and returns: qml