class_docstr: Tests for the probs function
class_docstr_tok: ["Tests","for","the","probs","function"]
docstr: Test that probs for mid-circuit measurement values
  are correct for a single measurement value.
code: def test_observable_is_measurement_value(
      self, shots, phi, tol, tol_stochastic
  ):  # pylint: disable=too-many-arguments
      """Test that probs for mid-circuit measurement values
      are correct for a single measurement value."""
      dev = qml.device("default.qubit", wires=2, shots=shots)
  
      @qml.qnode(dev)
      def circuit(phi):
          qml.RX(phi, 0)
          m0 = qml.measure(0)
          return qml.probs(op=m0)
  
      res = circuit(phi)
  
      atol = tol if shots is None else tol_stochastic
      expected = np.array([np.cos(phi / 2) ** 2, np.sin(phi / 2) ** 2])
  
      if not isinstance(shots, list):
          assert np.allclose(np.array(res), expected, atol=atol, rtol=0)
      else:
          for r in res:  # pylint: disable=not-an-iterable
              assert np.allclose(r, expected, atol=atol, rtol=0)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import MeasurementProcess, Probability, ProbabilityMP, Shots
  from pennylane.queuing import AnnotatedQueue
label_desc: Use image node_id 16 for calling the TestProbs obj's underlying member method code with example usage: obj.test_observable_is_measurement_value(shots, phi, tol, tol_stochastic) and returns: qml