class_docstr: Tests for the probs function
class_docstr_tok: ["Tests","for","the","probs","function"]
docstr: Test the probability is correct for a known state preparation when the
  analytic attribute is set to False.
docstr_tok: ["Test","the","probability","is","correct","for","a","known","state","preparation","when","the","analytic","attribute","is","set","to","False","."]
code: def test_integration_analytic_false(self, tol, mocker, shots):
      """Test the probability is correct for a known state preparation when the
      analytic attribute is set to False."""
      dev = qml.device("default.qubit.legacy", wires=3, shots=shots)
      spy = mocker.spy(qml.QubitDevice, "probability")
  
      @qml.qnode(dev)
      def circuit():
          qml.PauliX(0)
          return qml.probs(wires=dev.wires)
  
      res = circuit()
      expected = np.array([0, 0, 0, 0, 1, 0, 0, 0])
      assert np.allclose(res, expected, atol=tol, rtol=0)
  
      custom_measurement_process(dev, spy)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import ProbabilityMP, Shots
  from pennylane.devices.qubit.measure import flatten_state
label_desc: Use image node_id 11 for calling the TestProbs obj's underlying member method code with example usage: obj.test_integration_analytic_false(tol, mocker, shots) and returns: qml