class_docstr: Tests the helper functions.
class_docstr_tok: ["Tests","the","helper","functions","."]
docstr: Test that the correct Pauli words are returned.
docstr_tok: ["Test","that","the","correct","Pauli","words","are","returned","."]
code: def test_all_pauli_words_but_identity(
      self, num_wires, expected_pauli_words
  ):
      """Test that the correct Pauli words are returned."""
      for expected_pauli_word, pauli_word in zip(
          expected_pauli_words, _all_pauli_words_but_identity(num_wires)
      ):
          assert expected_pauli_word == pauli_word
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
  from pennylane.templates.subroutines.arbitrary_unitary import _all_pauli_words_but_identity, _tuple_to_word, _n_k_gray_code
label_desc: Use image node_id 2 for calling the TestHelpers obj's underlying member method code with example usage: obj.test_all_pauli_words_but_identity(num_wires, expected_pauli_words) without return types