class_docstr: Tests for the probs function
class_docstr_tok: ["Tests","for","the","probs","function"]
code: def test_non_commuting_probs_raises_error(self):
      dev = qml.device("default.qubit.legacy", wires=5)
  
      @qml.qnode(dev)
      def circuit(x, y):
          qml.RX(x, wires=[0])
          qml.RY(y, wires=[1])
          qml.CNOT(wires=[0, 1])
          return qml.expval(qml.PauliX(0)), qml.probs(wires=[0, 1])
  
      with pytest.raises(
          qml.QuantumFunctionError,
          match="Only observables that are qubit-wise commuting",
      ):
          circuit(1, 2)
  
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 23 for calling the TestProbs obj's underlying member method code with example usage: obj.test_non_commuting_probs_raises_error() and returns: qml,  qml