class_docstr: Test the private helper functions.
class_docstr_tok: ["Test","the","private","helper","functions","."]
docstr: Test the _recursive_expression function correctly generates the decomposition
docstr_tok: ["Test","the","_recursive_expression","function","correctly","generates","the","decomposition"]
code: def test_recursive_expression_no_queue(
      self, order, expected_expansion
  ):
      """Test the _recursive_expression function correctly generates the decomposition"""
      ops = [qml.PauliX(0), qml.PauliY(0), qml.PauliZ(1)]
  
      with qml.tape.QuantumTape() as tape:
          decomp = _recursive_expression(1.23, order, ops)
  
      assert tape.operations == []  # No queuing!
      assert all(
          qml.equal(op1, op2)
          for op1, op2 in zip(decomp, expected_expansion)
      )
  
imports: import copy
  from functools import reduce
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.math import allclose, get_interface
  from pennylane.templates.subroutines.trotter import _recursive_expression, _scalar
label_desc: Use image node_id 2 for calling the TestPrivateFunctions obj's underlying member method code with example usage: obj.test_recursive_expression_no_queue(order, expected_expansion) without return types