class_docstr: Tests for the sample function
class_docstr_tok: ["Tests","for","the","sample","function"]
docstr: Test the return type and shape of sampling multiple wires
  where a rectangular array is expected
docstr_tok: ["Test","the","return","type","and","shape","of","sampling","multiple","wires","where","a","rectangular","array","is","expected"]
code: def test_multi_wire_sample_regular_shape(self):
      """Test the return type and shape of sampling multiple wires
      where a rectangular array is expected"""
      n_sample = 10
  
      dev = qml.device("default.qubit", wires=3, shots=n_sample)
  
      @qml.qnode(dev)
      def circuit():
          return (
              qml.sample(qml.PauliZ(0)),
              qml.sample(qml.PauliZ(1)),
              qml.sample(qml.PauliZ(2)),
          )
  
      result = circuit()
  
      assert circuit._qfunc_output[0].shape(dev, Shots(n_sample)) == (
          n_sample,
      )
      assert circuit._qfunc_output[1].shape(dev, Shots(n_sample)) == (
          n_sample,
      )
      assert circuit._qfunc_output[2].shape(dev, Shots(n_sample)) == (
          n_sample,
      )
  
      # If all the dimensions are equal the result will end up to be a proper rectangular array
      assert isinstance(result, tuple)
      assert len(result) == 3
      assert result[0].dtype == np.dtype("int")
  
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 4 for calling the TestSample obj's underlying member method code with example usage: obj.test_multi_wire_sample_regular_shape() and returns: qml,  qml,  qml