class_docstr: Test the pauli_sentence function.
docstr: Test that a correct pauli sentence is computed when passing an arithmetic operator and not
  relying on the saved op.pauli_rep attribute.
docstr_tok: ["Test","that","a","correct","pauli","sentence","is","computed","when","passing","an","arithmetic","operator","and","not","relying","on","the","saved","op.pauli_rep","attribute","."]
code: def test_operator_private_ps(self, op, ps):
      """Test that a correct pauli sentence is computed when passing an arithmetic operator and not
      relying on the saved op.pauli_rep attribute."""
      assert qml.pauli.conversion._pauli_sentence(op) == ps
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.operation import Tensor
  from pennylane.ops import Identity, PauliX, PauliY, PauliZ
  from pennylane.pauli import pauli_sentence, PauliWord, PauliSentence
  from pennylane.pauli.conversion import _generalized_pauli_decompose
label_desc: Use image node_id 6 for calling the TestPauliSentence obj's underlying member method code with example usage: obj.test_operator_private_ps(op, ps) without return types