code: def _all_pauli_words_but_identity(num_wires):
      # Start at 1 to ignore identity
      yield from (
          _tuple_to_word(idx_tuple)
          for idx_tuple in _n_k_gray_code(4, num_wires, start=1)
      )
  
file_path: pennylane/pennylane/templates/subroutines/arbitrary_unitary.py
imports: import pennylane
  from pennylane.operation import Operation, AnyWires
  from pennylane.ops import PauliRot
label_desc: Use image node_id 3 for calling a global function with example usage: _all_pauli_words_but_identity(num_wires) without return types